ext4: fix possible leak of sbi->s_group_desc_leak in error path
authorTheodore Ts'o <tytso@mit.edu>
Wed, 7 Nov 2018 15:32:53 +0000 (10:32 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:24:12 +0000 (09:24 +0100)
commit1124e5a89bd285468563df6723ceebab754735f6
tree4609d84e305f00cdd34f63fdc3057d75e495622a
parentbf04dace8318d6ae20a11c9e7692f36d9e387c23
ext4: fix possible leak of sbi->s_group_desc_leak in error path

commit 9e463084cdb22e0b56b2dfbc50461020409a5fd3 upstream.

Fixes: bfe0a5f47ada ("ext4: add more mount time checks of the superblock")
Reported-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 4.18
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c