]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: fix error handling code in add_new_gdb
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 29 Aug 2020 02:54:02 +0000 (10:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:53 +0000 (11:08 +0100)
commit6ad22dc99cb627fa13812bc0e27a6595bba62f5e
treee544e4ac8b54a9070c23f67a0b4b0d57946686ee
parent314b5a46c65726750fa1fa3e665df9485d09551a
ext4: fix error handling code in add_new_gdb

commit c9e87161cc621cbdcfc472fa0b2d81c63780c8f5 upstream.

When ext4_journal_get_write_access() fails, we should
terminate the execution flow and release n_group_desc,
iloc.bh, dind and gdb_bh.

Cc: stable@kernel.org
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20200829025403.3139-1-dinghao.liu@zju.edu.cn
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/resize.c