summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/bitmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext2fs/bitmap.c b/ext2fs/bitmap.c
index c440c8b1..cf7702d7 100644
--- a/ext2fs/bitmap.c
+++ b/ext2fs/bitmap.c
@@ -70,7 +70,8 @@ find_next_zero_bit(void *addr, unsigned long size, unsigned long offset)
if (offset)
{
tmp = *(p++);
- tmp |= ~0UL >> (32-offset);
+ if (offset)
+ tmp |= ~0UL >> (32-offset);
if (size < 32)
goto found_first;
if (~tmp)