ia64/xen-unstable

changeset 12383:3713ea43e636

[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@valinux.co.jp>
author awilliam@xenbuild.aw
date Fri Nov 10 11:14:42 2006 -0700 (2006-11-10)
parents 8533c59c5b40
children 0361efd32d4d
files xen/arch/ia64/xen/xencomm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/xencomm.c	Fri Nov 10 11:14:36 2006 -0700
     1.2 +++ b/xen/arch/ia64/xen/xencomm.c	Fri Nov 10 11:14:42 2006 -0700
     1.3 @@ -382,6 +382,6 @@ xencomm_handle_is_null(
     1.4              return 1;
     1.5  
     1.6          desc = (struct xencomm_desc *)desc_addr;
     1.7 -        return (desc->address[0] == XENCOMM_INVALID);
     1.8 +        return (desc->nr_addrs == 0);
     1.9      }
    1.10  }