Ubuntu-focal-kernel/fs/jbd2
Kemeng Shi 2846da4bfb jbd2: avoid memleak in jbd2_journal_write_metadata_buffer
BugLink: https://bugs.launchpad.net/bugs/2078388

[ Upstream commit cc102aa24638b90e04364d64e4f58a1fa91a1976 ]

The new_bh is from alloc_buffer_head, we should call free_buffer_head to
free it in error case.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20240514112438.1269037-2-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2024-09-27 10:50:19 +02:00
..
Kconfig
Makefile
checkpoint.c jbd2: Fix wrongly judgement for buffer head removing while doing checkpoint 2023-10-30 11:41:43 +01:00
commit.c
journal.c jbd2: avoid memleak in jbd2_journal_write_metadata_buffer 2024-09-27 10:50:19 +02:00
recovery.c jbd2: fix potential data lost in recovering journal raced with synchronizing fs bdev 2024-02-02 14:13:10 +01:00
revoke.c
transaction.c jbd2: fix kernel-doc markups 2023-10-30 11:41:43 +01:00