Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Eric Eric Sesterhenn and committed by
Linus Torvalds
00079e04 5c339d45

+2 -2
+2 -2
fs/reiserfs/bitmap.c
··· 1304 1304 1305 1305 bh = sb_bread(sb, block); 1306 1306 if (bh == NULL) 1307 - reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%lu) " 1308 - "reading failed", __FUNCTION__, bh->b_blocknr); 1307 + reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%u) " 1308 + "reading failed", __FUNCTION__, block); 1309 1309 else { 1310 1310 if (buffer_locked(bh)) { 1311 1311 PROC_INFO_INC(sb, scan_bitmap.wait);