|
@@ -887,6 +887,10 @@ got:
|
|
struct buffer_head *block_bitmap_bh;
|
|
struct buffer_head *block_bitmap_bh;
|
|
|
|
|
|
block_bitmap_bh = ext4_read_block_bitmap(sb, group);
|
|
block_bitmap_bh = ext4_read_block_bitmap(sb, group);
|
|
|
|
+ if (!block_bitmap_bh) {
|
|
|
|
+ err = -EIO;
|
|
|
|
+ goto out;
|
|
|
|
+ }
|
|
BUFFER_TRACE(block_bitmap_bh, "get block bitmap access");
|
|
BUFFER_TRACE(block_bitmap_bh, "get block bitmap access");
|
|
err = ext4_journal_get_write_access(handle, block_bitmap_bh);
|
|
err = ext4_journal_get_write_access(handle, block_bitmap_bh);
|
|
if (err) {
|
|
if (err) {
|