]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ext4/mballoc.c
ext4: Fix null bh pointer dereference in mballoc
[linux-2.6-omap-h63xx.git] / fs / ext4 / mballoc.c
index 76e5fedc0a0b4c7e581852d9eeab4374ba246a24..06d1f5292d3aa7395721a0a38e76fb3de7926cf8 100644 (file)
@@ -3069,7 +3069,7 @@ static int ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac,
 
 out_err:
        sb->s_dirt = 1;
-       put_bh(bitmap_bh);
+       brelse(bitmap_bh);
        return err;
 }