# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1163136972 -32400 # Node ID f4cb96c1d8ef2a55ecdfcf4496da1dc8ce8d968c # Parent 10cd8f17f3e583282fd4d8efa7d6f05f4a122319 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. PATCHNAME: xencomm_handle_is_null_fix Signed-off-by: Isaku Yamahata diff -r 10cd8f17f3e5 -r f4cb96c1d8ef xen/arch/ia64/xen/xencomm.c --- a/xen/arch/ia64/xen/xencomm.c Fri Nov 10 14:34:10 2006 +0900 +++ b/xen/arch/ia64/xen/xencomm.c Fri Nov 10 14:36:12 2006 +0900 @@ -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); + } +}