diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-12-05 12:35:38 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-12-05 12:35:38 -0500 |
commit | ba37bb704f4ab2631a39c32b35d6bb339e17b293 (patch) | |
tree | 3d2169c6850c557edf4faf2bde1beffa9fca7481 /lib | |
parent | 499d5ec5582209279bb0cf86672770d77b047871 (diff) | |
download | e2fsprogs-ba37bb704f4ab2631a39c32b35d6bb339e17b293.tar.gz |
libext2fs: don't break when ext2fs_clear_generic_bmap() for 32-bit bitmaps
This is only an issue for programs compiled against e2fsprogs 1.41
that manipulate bitmaps directly. Fortunately there are very few
programs which do that, especially those that try to clear a bitmap.
Addresses-Sourceforge-Bugs: #3451486
Reported-by: robi6@users.sourceforge.net
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ext2fs/gen_bitmap64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c index 9dbbf9fb..4dc4e082 100644 --- a/lib/ext2fs/gen_bitmap64.c +++ b/lib/ext2fs/gen_bitmap64.c @@ -297,8 +297,8 @@ void ext2fs_clear_generic_bmap(ext2fs_generic_bitmap bitmap) { if (EXT2FS_IS_32_BITMAP(bitmap)) ext2fs_clear_generic_bitmap(bitmap); - - bitmap->bitmap_ops->clear_bmap (bitmap); + else + bitmap->bitmap_ops->clear_bmap (bitmap); } int ext2fs_mark_generic_bmap(ext2fs_generic_bitmap bitmap, |