Commit dc1f7380 authored by Chengguang Xu's avatar Chengguang Xu Committed by Jan Kara

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: default avatarChengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 1eaf5faa
......@@ -509,6 +509,7 @@ struct inode *ext2_new_inode(struct inode *dir, umode_t mode,
/*
* Scanned all blockgroups.
*/
brelse(bitmap_bh);
err = -ENOSPC;
goto fail;
got:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment