[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix compile warning about uninitialised vars.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 8531996d207f649c4375bb7fa299365205010224
# Parent  9368d2ba43f2221658da74c1885f40309ea94f11
Fix compile warning about uninitialised vars.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 9368d2ba43f2 -r 8531996d207f xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Thu Jan 12 15:10:12 2006
+++ b/xen/arch/x86/traps.c      Thu Jan 12 20:48:51 2006
@@ -965,8 +965,8 @@
         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",

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.