mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing
commitf348e2241fupstream. Fixes:117fff10d7("ext4: grow the s_flex_groups array as needed ...") Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org # 3.7 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
656b121b39
commit
110a1994e1
@@ -2022,7 +2022,7 @@ retry:
|
||||
|
||||
err = ext4_alloc_flex_bg_array(sb, n_group + 1);
|
||||
if (err)
|
||||
return err;
|
||||
goto out;
|
||||
|
||||
err = ext4_mb_alloc_groupinfo(sb, n_group + 1);
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user