From: Eric Eric Sesterhenn Date: Sat, 7 Oct 2006 05:19:45 +0000 (-0700) Subject: [PATCH] reiserfs: null pointer dereferencing in reiserfs_read_bitmap_block X-Git-Tag: v2.6.19-rc2~278 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=00079e04fe478cd3c59ae2106ef2fbe779e67024;p=linux-2.6-omap-h63xx.git [PATCH] reiserfs: null pointer dereferencing in reiserfs_read_bitmap_block null pointer dereferencing in reiserfs_read_bitmap_block. Signed-off-by: Alexander Zarochentsev Cc: Jeff Mahoney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/reiserfs/bitmap.c b/fs/reiserfs/bitmap.c index 1bfae42117c..e3d466a228d 100644 --- a/fs/reiserfs/bitmap.c +++ b/fs/reiserfs/bitmap.c @@ -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);