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] [xen-unstable] event_channel: Fix uninitialised variable

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] event_channel: Fix uninitialised variable build error.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 22 Nov 2010 11:05:12 -0800
Delivery-date: Mon, 22 Nov 2010 11:05:22 -0800
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir@xxxxxxx>
# Date 1290414543 0
# Node ID 899131a8f9d2b99acc4bbe18593952d30446e71b
# Parent  117d82dcd6ba785a702e2d0cfdb93642d84da1b9
event_channel: Fix uninitialised variable build error.

Signed-off-by: Yang Zhang <yang.z.zhang@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxx>
---
 xen/common/event_channel.c |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff -r 117d82dcd6ba -r 899131a8f9d2 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 08:29:03 2010 +0000
@@ -345,15 +345,14 @@ static long evtchn_bind_pirq(evtchn_bind
     chn = evtchn_from_port(d, port);
 
     d->pirq_to_evtchn[pirq] = port;
-    if ( !is_hvm_domain(d) )
-    {
-        rc = pirq_guest_bind(
-            v, pirq, !!(bind->flags & BIND_PIRQ__WILL_SHARE));
-        if ( rc != 0 )
-        {
-            d->pirq_to_evtchn[pirq] = 0;
-            goto out;
-        }
+    rc = (!is_hvm_domain(d)
+          ? pirq_guest_bind(
+              v, pirq, !!(bind->flags & BIND_PIRQ__WILL_SHARE))
+          : 0);
+    if ( rc != 0 )
+    {
+        d->pirq_to_evtchn[pirq] = 0;
+        goto out;
     }
 
     chn->state  = ECS_PIRQ;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] event_channel: Fix uninitialised variable build error., Xen patchbot-unstable <=