[PATCH] reiserfs: null pointer dereferencing in reiserfs_read_bitmap_block

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>
This commit is contained in:
Eric Eric Sesterhenn 2006-10-06 22:19:45 -07:00 committed by Linus Torvalds
parent 5c339d4541
commit 00079e04fe

View file

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