diff options
| author | Kemeng Shi <[email protected]> | 2024-05-14 11:24:30 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2024-06-27 14:20:26 +0000 |
| commit | cc102aa24638b90e04364d64e4f58a1fa91a1976 (patch) | |
| tree | 3f787c15c602814a962f9f78db2dc3ab48cc21a7 /fs/jbd2/commit.c | |
| parent | ext4: fix uninitialized variable in ext4_inlinedir_to_tree (diff) | |
| download | kernel-cc102aa24638b90e04364d64e4f58a1fa91a1976.tar.gz kernel-cc102aa24638b90e04364d64e4f58a1fa91a1976.zip | |
jbd2: avoid memleak in jbd2_journal_write_metadata_buffer
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 <[email protected]>
Reviewed-by: Zhang Yi <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
