Commit 64176ffd authored by Vasily Averin's avatar Vasily Averin Committed by Greg Kroah-Hartman
Browse files

ext4: add missing brelse() add_new_gdb_meta_bg()'s error path

commit 61a9c11e upstream.

Fixes: 01f795f9

 ("ext4: add online resizing support for meta_bg ...")
Signed-off-by: default avatarVasily Averin <>
Signed-off-by: default avatarTheodore Ts'o <>
Cc: # 3.7
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent feddbc01
......@@ -901,6 +901,7 @@ static int add_new_gdb_meta_bg(struct super_block *sb,
sizeof(struct buffer_head *),
if (!n_group_desc) {
err = -ENOMEM;
ext4_warning(sb, "not enough memory for %lu groups",
gdb_num + 1);
......@@ -916,8 +917,6 @@ static int add_new_gdb_meta_bg(struct super_block *sb,
BUFFER_TRACE(gdb_bh, "get_write_access");
err = ext4_journal_get_write_access(handle, gdb_bh);
if (unlikely(err))
return err;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment