summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@zoho.com.cn>2019-05-30 06:10:42 -0400
committerJan Kara <jack@suse.cz>2019-05-30 07:35:32 -0400
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 <cgxu519@zoho.com.cn> Signed-off-by: Jan Kara <jack@suse.cz>
-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:
509 /* 509 /*
510 * Scanned all blockgroups. 510 * Scanned all blockgroups.
511 */ 511 */
512 brelse(bitmap_bh);
512 err = -ENOSPC; 513 err = -ENOSPC;
513 goto fail; 514 goto fail;
514got: 515got: