WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix compile warning about uninitialised vars.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 13 Jan 2006 18:28:09 +0000
Delivery-date: Fri, 13 Jan 2006 18:35:42 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix compile warning about uninitialised vars., Xen patchbot -unstable <=