[PATCH] reiserfs: null pointer dereferencing in reiserfs_read_bitmap_block
authorEric Eric Sesterhenn <snakebyte@gmx.de>
Sat, 7 Oct 2006 05:19:45 +0000 (22:19 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 7 Oct 2006 17:51:14 +0000 (10:51 -0700)
null pointer dereferencing in reiserfs_read_bitmap_block.

Signed-off-by: Alexander Zarochentsev <zam@namesys.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/bitmap.c

index 1bfae42117ca714d1951a179d26d037f12226767..e3d466a228d40bd9756bafe76a4f5a419b43a8cf 100644 (file)
@@ -1304,8 +1304,8 @@ struct buffer_head *reiserfs_read_bitmap_block(struct super_block *sb,
 
        bh = sb_bread(sb, block);
        if (bh == NULL)
-               reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%lu) "
-                                "reading failed", __FUNCTION__, bh->b_blocknr);
+               reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%u) "
+                                "reading failed", __FUNCTION__, block);
        else {
                if (buffer_locked(bh)) {
                        PROC_INFO_INC(sb, scan_bitmap.wait);