WSL2-Linux-Kernel/fs/jbd2
Kemeng Shi 459ca68214 jbd2: avoid memleak in jbd2_journal_write_metadata_buffer
[ 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>
2024-08-19 05:45:39 +02:00
..
Kconfig
Makefile
checkpoint.c jbd2: rename jbd_debug() to jbd2_debug() 2023-09-23 11:10:00 +02:00
commit.c jbd2: make jbd2_journal_get_max_txn_bufs() internal 2024-08-19 05:45:14 +02:00
journal.c jbd2: avoid memleak in jbd2_journal_write_metadata_buffer 2024-08-19 05:45:39 +02:00
recovery.c jbd2: fix potential data lost in recovering journal raced with synchronizing fs bdev 2023-11-28 16:56:30 +00:00
revoke.c jbd2: rename jbd_debug() to jbd2_debug() 2023-09-23 11:10:00 +02:00
transaction.c jbd2: rename jbd_debug() to jbd2_debug() 2023-09-23 11:10:00 +02:00