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] [IA64] fix xencomm_handle_is_null().

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] fix xencomm_handle_is_null().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Nov 2006 00:40:29 +0000
Delivery-date: Tue, 14 Nov 2006 16:41:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 awilliam@xxxxxxxxxxx
# Node ID 3713ea43e6364bf2989a1cf0dc252a6a1393ce02
# Parent  8533c59c5b40df0f6e6d03cbc8a74057dcbed5db
[IA64] fix xencomm_handle_is_null().

It checks only desc->address[0]. However xencomm_add_offset() may
sets XENCOMM_INVALID while there left consumable bytes.
In such a case xencomm_handle_is_null() returns true wrongly.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/xencomm.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r 8533c59c5b40 -r 3713ea43e636 xen/arch/ia64/xen/xencomm.c
--- a/xen/arch/ia64/xen/xencomm.c       Fri Nov 10 11:14:36 2006 -0700
+++ b/xen/arch/ia64/xen/xencomm.c       Fri Nov 10 11:14:42 2006 -0700
@@ -382,6 +382,6 @@ xencomm_handle_is_null(
             return 1;
 
         desc = (struct xencomm_desc *)desc_addr;
-        return (desc->address[0] == XENCOMM_INVALID);
-    }
-}
+        return (desc->nr_addrs == 0);
+    }
+}

_______________________________________________
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] [IA64] fix xencomm_handle_is_null()., Xen patchbot-unstable <=