mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix assertions in bitops.c.
Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
This commit is contained in:
1 parent
db65a8e335
commit
c6d83ccc90
1 file changed
+2
-2
@@ -29,7 +29,7 @@ unsigned int __find_next_bit(
|
||||
const unsigned long *p = addr + (offset / BITS_PER_LONG);
|
||||
unsigned int set, bit = offset & (BITS_PER_LONG - 1);
|
||||
|
||||
ASSERT(offset < size);
|
||||
ASSERT(offset <= size);
|
||||
|
||||
if ( bit != 0 )
|
||||
{
|
||||
@@ -78,7 +78,7 @@ unsigned int __find_next_zero_bit(
|
||||
const unsigned long *p = addr + (offset / BITS_PER_LONG);
|
||||
unsigned int set, bit = offset & (BITS_PER_LONG - 1);
|
||||
|
||||
ASSERT(offset < size);
|
||||
ASSERT(offset <= size);
|
||||
|
||||
if ( bit != 0 )
|
||||
{
|
||||
|
||||