jbd2: add miss release buffer head in fc_do_one_pass()
authorYe Bin <yebin10@huawei.com>
Sat, 17 Sep 2022 09:38:05 +0000 (17:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:34:28 +0000 (12:34 +0200)
commit56fcd0788f0d9243c1754bd6f80b8b327c4afeee
tree26d20dd981f4b48d462371af57dcf0c1c87e66e7
parentd11d2ded293976a1a0d9d9471827a44dc9e3c63f
jbd2: add miss release buffer head in fc_do_one_pass()

commit dfff66f30f66b9524b661f311bbed8ff3d2ca49f upstream.

In fc_do_one_pass() miss release buffer head after use which will lead
to reference count leak.

Cc: stable@kernel.org
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220917093805.1782845-1-yebin10@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/recovery.c