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

[Xen-devel] [PATCH] xen/arch/x86/vm-io passing unintialized variable to function


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Jerone Young <jerone@xxxxxxxxx>
  • Date: Tue, 5 Jul 2005 16:47:27 -0500
  • Delivery-date: Tue, 05 Jul 2005 21:46:16 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XGBUd0Npr++igXuDOBOWUSvoe4zgaJyXSItfoTJtiCVAfw1tFAv6ythb/cUsp0SNkrVlbBFuxkdkYL3RQuaf5MJkcgAEh5EniJE4ZqJQTRWN5/UvZErXxOpt2rAMF0LtpbDR5md/RHEGoNjVMtK58euYrsw3MI8iq4cuVWEK3lc=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Oh gcc4 ....how you complain soo. This patch fixes compile with gcc4
where an unintialized variable is used in a function.

Signed-off-by: Jerone Young <jerone@xxxxxxxxx>

--- xen/arch/x86/vmx_io.c.old   2005-07-05 16:44:01.000000000 -0500
+++ xen/arch/x86/vmx_io.c       2005-07-05 16:44:20.000000000 -0500
@@ -621,7 +621,7 @@ static inline int irq_masked(unsigned lo

 void vmx_intr_assist(struct vcpu *v)
 {
-    int intr_type;
+    int intr_type = 0;
     int highest_vector = find_highest_pending_irq(v, &intr_type);
     unsigned long intr_fields, eflags, interruptibility, cpu_exec_control;

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


 


Rackspace

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