ext2: add missing brelse() in ext2_new_inode()

There is a missing brelse of bitmap_bh in an error
path of ext2_new_inode().

Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
Chengguang Xu 2019-05-30 18:10:42 +08:00 committed by Jan Kara
parent 1eaf5faab1
commit dc1f73802b

View file

@ -509,6 +509,7 @@ repeat_in_this_group:
/* /*
* Scanned all blockgroups. * Scanned all blockgroups.
*/ */
brelse(bitmap_bh);
err = -ENOSPC; err = -ENOSPC;
goto fail; goto fail;
got: got: