Fix compile warning about uninitialised vars.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 12 Jan 2006 20:48:51 +0000 (21:48 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 12 Jan 2006 20:48:51 +0000 (21:48 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/traps.c

index 0213a255bc0b5a682d5eeb8352e2fd8d1339c2d9..93b11e36c1b2116251af4e355b9fccaa3ca47d94 100644 (file)
@@ -965,8 +965,8 @@ static int emulate_privileged_op(struct cpu_user_regs *regs)
         if ( !IS_PRIV(v->domain) )
         {
             u32 l, h;
-            if ( (regs->ecx != MSR_EFER) ||
-                 (rdmsr_user(regs->ecx, l, h) != 0) ||
+            if ( (rdmsr_user(regs->ecx, l, h) != 0) ||
+                 (regs->ecx != MSR_EFER) ||
                  (regs->eax != l) || (regs->edx != h) )
                 DPRINTK("Non-priv domain attempted WRMSR %p from "
                         "%08x:%08x to %08lx:%08lx.\n",