ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing
authorVasily Averin <vvs@virtuozzo.com>
Tue, 6 Nov 2018 21:16:01 +0000 (16:16 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Nov 2018 06:32:47 +0000 (07:32 +0100)
commite66a1ebd80b1922312ff9bb315d8263285f38e8d
tree56eedc0206107fdd6e581504f6c7dbffb0171aaf
parent256e71ccb0471a84157145f75fa5428d8f6c50a7
ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing

commit f348e2241fb73515d65b5d77dd9c174128a7fbf2 upstream.

Fixes: 117fff10d7f1 ("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>
fs/ext4/resize.c