ext4: avoid possible double brelse() in add_new_gdb() on error path
authorTheodore Ts'o <tytso@mit.edu>
Tue, 6 Nov 2018 22:18:17 +0000 (17:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Nov 2018 06:32:48 +0000 (07:32 +0100)
commiteebf0feb5ddb603025da7c1c6ab40c590b08c529
tree623b4ce04a78e7c163ab98570ff2ffb59bb05849
parente66a1ebd80b1922312ff9bb315d8263285f38e8d
ext4: avoid possible double brelse() in add_new_gdb() on error path

commit 4f32c38b4662312dd3c5f113d8bdd459887fb773 upstream.

Fixes: b40971426a83 ("ext4: add error checking to calls to ...")
Reported-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 2.6.38
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/resize.c