summaryrefslogtreecommitdiffstats
path: root/fs/ext2
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@zoho.com.cn>2019-05-30 12:10:42 +0200
committerJan Kara <jack@suse.cz>2019-05-30 13:35:32 +0200
commitdc1f73802bd76bea60b9c93eb24a1d26472d2723 (patch)
tree3cb0343289bb3d4a2d15a036eee00472c0586c3b /fs/ext2
parentext2: optimize ext2_xattr_get() (diff)
downloadlinux-dc1f73802bd76bea60b9c93eb24a1d26472d2723.tar.xz
linux-dc1f73802bd76bea60b9c93eb24a1d26472d2723.zip
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>
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/ialloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c
index 334dea4e499d..fda7d3f5b4be 100644
--- a/fs/ext2/ialloc.c
+++ b/fs/ext2/ialloc.c
@@ -509,6 +509,7 @@ repeat_in_this_group:
/*
* Scanned all blockgroups.
*/
+ brelse(bitmap_bh);
err = -ENOSPC;
goto fail;
got: