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

[Xen-changelog] [xen-unstable] x86: Fix (bogus) use-before-initialise compiler warning.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1278093796 -3600
# Node ID 4d091e6e04918ba3ef19cc45ae2fffaee4f18afe
# Parent  569b6148a65236d0a60e3dfde82349b1d3a6c339
x86: Fix (bogus) use-before-initialise compiler warning.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/mm/hap/p2m-ept.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 569b6148a652 -r 4d091e6e0491 xen/arch/x86/mm/hap/p2m-ept.c
--- a/xen/arch/x86/mm/hap/p2m-ept.c     Fri Jul 02 19:00:04 2010 +0100
+++ b/xen/arch/x86/mm/hap/p2m-ept.c     Fri Jul 02 19:03:16 2010 +0100
@@ -234,7 +234,7 @@ ept_set_entry(struct domain *d, unsigned
 {
     ept_entry_t *table, *ept_entry;
     unsigned long gfn_remainder = gfn;
-    unsigned long offset;
+    unsigned long offset = 0;
     u32 index;
     int i, target = order / EPT_TABLE_ORDER;
     int rv = 0;

_______________________________________________
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®.