diff options
author | Eric Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-07 01:19:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-07 13:51:14 -0400 |
commit | 00079e04fe478cd3c59ae2106ef2fbe779e67024 (patch) | |
tree | 91a24f8b7a46c35d06375290fd6c467a2553283d | |
parent | 5c339d4541995df2fd3ca31a84c042e7afe9b3c1 (diff) |
[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>
-rw-r--r-- | fs/reiserfs/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/bitmap.c b/fs/reiserfs/bitmap.c index 1bfae42117ca..e3d466a228d4 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, | |||
1304 | 1304 | ||
1305 | bh = sb_bread(sb, block); | 1305 | bh = sb_bread(sb, block); |
1306 | if (bh == NULL) | 1306 | if (bh == NULL) |
1307 | reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%lu) " | 1307 | reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%u) " |
1308 | "reading failed", __FUNCTION__, bh->b_blocknr); | 1308 | "reading failed", __FUNCTION__, block); |
1309 | else { | 1309 | else { |
1310 | if (buffer_locked(bh)) { | 1310 | if (buffer_locked(bh)) { |
1311 | PROC_INFO_INC(sb, scan_bitmap.wait); | 1311 | PROC_INFO_INC(sb, scan_bitmap.wait); |