Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 110a1994 authored by Vasily Averin's avatar Vasily Averin Committed by Greg Kroah-Hartman
Browse files

ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing



commit f348e2241fb73515d65b5d77dd9c174128a7fbf2 upstream.

Fixes: 117fff10 ("ext4: grow the s_flex_groups array as needed ...")
Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 3.7
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 656b121b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2022,7 +2022,7 @@ int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count)

	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)