aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChengguang Xu <[email protected]>2019-05-30 18:10:42 +0800
committerJan Kara <[email protected]>2019-05-30 13:35:32 +0200
commitdc1f73802bd76bea60b9c93eb24a1d26472d2723 (patch)
tree3cb0343289bb3d4a2d15a036eee00472c0586c3b
parent1eaf5faab18cd55a3658e0c7517654325f59a793 (diff)
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 <[email protected]> Signed-off-by: Jan Kara <[email protected]>
-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: