Skip to content

Commit dc1f738

Browse files
Chengguang Xujankara
authored andcommitted
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>
1 parent 1eaf5fa commit dc1f738

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/ext2/ialloc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ struct inode *ext2_new_inode(struct inode *dir, umode_t mode,
509509
/*
510510
* Scanned all blockgroups.
511511
*/
512+
brelse(bitmap_bh);
512513
err = -ENOSPC;
513514
goto fail;
514515
got:

0 commit comments

Comments
 (0)