linux-imx/fs/jbd2
Kemeng Shi 6dacca9fbe jbd2: avoid memleak in jbd2_journal_write_metadata_buffer
[ Upstream commit cc102aa246 ]

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>
2024-08-14 13:58:46 +02:00
..
checkpoint.c jbd2: remove unused function '__cp_buffer_busy' 2023-08-04 16:32:29 -04:00
commit.c jbd2: make jbd2_journal_get_max_txn_bufs() internal 2024-08-03 08:54:19 +02:00
journal.c jbd2: avoid memleak in jbd2_journal_write_metadata_buffer 2024-08-14 13:58:46 +02:00
Kconfig
Makefile
recovery.c jbd2: fix potential data lost in recovering journal raced with synchronizing fs bdev 2023-11-28 17:20:04 +00:00
revoke.c
transaction.c jbd2: avoid infinite transaction commit loop 2024-08-03 08:54:19 +02:00