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-devel

[Xen-devel] [PATCH] fix build error in xen

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] fix build error in xen
From: "Zhang, Yang Z" <yang.z.zhang@xxxxxxxxx>
Date: Mon, 22 Nov 2010 10:59:50 +0800
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Sun, 21 Nov 2010 19:02:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcuJ8VLNCRM3ADcLSsOndF+e5JJ2/g==
Thread-topic: [PATCH] fix build error in xen
Fix build error that use uninitialized variable.

Signed-off-by:Yang Zhang <yang.z.zhang@xxxxxxxxx>

diff -r 117d82dcd6ba xen/common/event_channel.c
--- a/xen/common/event_channel.c        Fri Nov 19 18:55:18 2010 +0000
+++ b/xen/common/event_channel.c        Mon Nov 22 10:52:10 2010 +0800
@@ -326,7 +326,7 @@
     struct domain *d = current->domain;
     struct vcpu   *v = d->vcpu[0];
     int            port, pirq = bind->pirq;
-    long           rc;
+    long           rc = 0;

     if ( (pirq < 0) || (pirq >= d->nr_pirqs) )
         return -EINVAL;



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix build error in xen, Zhang, Yang Z <=