ia64/xen-unstable

changeset 8584:8531996d207f

Fix compile warning about uninitialised vars.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Jan 12 21:48:51 2006 +0100 (2006-01-12)
parents 9368d2ba43f2
children bcf188da3ea1
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Thu Jan 12 16:10:12 2006 +0100
     1.2 +++ b/xen/arch/x86/traps.c	Thu Jan 12 21:48:51 2006 +0100
     1.3 @@ -965,8 +965,8 @@ static int emulate_privileged_op(struct 
     1.4          if ( !IS_PRIV(v->domain) )
     1.5          {
     1.6              u32 l, h;
     1.7 -            if ( (regs->ecx != MSR_EFER) ||
     1.8 -                 (rdmsr_user(regs->ecx, l, h) != 0) ||
     1.9 +            if ( (rdmsr_user(regs->ecx, l, h) != 0) ||
    1.10 +                 (regs->ecx != MSR_EFER) ||
    1.11                   (regs->eax != l) || (regs->edx != h) )
    1.12                  DPRINTK("Non-priv domain attempted WRMSR %p from "
    1.13                          "%08x:%08x to %08lx:%08lx.\n",