direct-io.hg

changeset 7472:6b8a91dcdc2e

Fix assertions in bitops.c.

Signed-off-by: Aravindh Puthiyaparambil
<aravindh.puthiyaparambil@unisys.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Oct 22 07:43:56 2005 +0100 (2005-10-22)
parents 37050ba0e35c
children 94cee9a918de
files xen/arch/x86/bitops.c
line diff
     1.1 --- a/xen/arch/x86/bitops.c	Sat Oct 22 07:37:15 2005 +0100
     1.2 +++ b/xen/arch/x86/bitops.c	Sat Oct 22 07:43:56 2005 +0100
     1.3 @@ -29,7 +29,7 @@ unsigned int __find_next_bit(
     1.4      const unsigned long *p = addr + (offset / BITS_PER_LONG);
     1.5      unsigned int set, bit = offset & (BITS_PER_LONG - 1);
     1.6  
     1.7 -    ASSERT(offset < size);
     1.8 +    ASSERT(offset <= size);
     1.9  
    1.10      if ( bit != 0 )
    1.11      {
    1.12 @@ -78,7 +78,7 @@ unsigned int __find_next_zero_bit(
    1.13      const unsigned long *p = addr + (offset / BITS_PER_LONG);
    1.14      unsigned int set, bit = offset & (BITS_PER_LONG - 1);
    1.15  
    1.16 -    ASSERT(offset < size);
    1.17 +    ASSERT(offset <= size);
    1.18  
    1.19      if ( bit != 0 )
    1.20      {