[PATCH 3/7] ext4 resize: missing brelse() in case success in add_new_gdb()
From: Vasily Averin
Date: Mon Oct 29 2018 - 11:47:33 EST
Fixes ac27a0ec112a ("ext4: initial copy of files from ext3")
#? cc: stable <stable@xxxxxxxxxxxxxxx> # 2.6.19 or evel earlier in ext3
Signed-off-by: Vasily Averin <vvs@xxxxxxxxxx>
---
fs/ext4/resize.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c
index 0a4dc6217e78..ff17480e8613 100644
--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -874,6 +874,7 @@ static int add_new_gdb(handle_t *handle, struct inode *inode,
goto exit_inode;
}
brelse(dind);
+ brelse(iloc.bh);
o_group_desc = EXT4_SB(sb)->s_group_desc;
memcpy(n_group_desc, o_group_desc,
--
2.17.1