]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
xen: arm: fix assert in select_user_reg
authorIan Campbell <ian.campbell@citrix.com>
Thu, 17 Jan 2013 16:48:25 +0000 (16:48 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 17 Jan 2013 16:48:25 +0000 (16:48 +0000)
The condition was inverted.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/traps.c

index f42e4e91fe56b0fdcb04826ac5f9593d9b8a1b2d..8afcf0c4ab93e771a7af6d9016a6b2c20877cc5b 100644 (file)
@@ -75,7 +75,7 @@ static void print_xen_info(void)
 
 uint32_t *select_user_reg(struct cpu_user_regs *regs, int reg)
 {
-    BUG_ON( guest_mode(regs) );
+    BUG_ON( !guest_mode(regs) );
 
     /*
      * We rely heavily on the layout of cpu_user_regs to avoid having