mbox series

[0/2] ubifs: Fix two kmemleaks in error path

Message ID 20231222025025.2940450-1-chengzhihao1@huawei.com
Headers show
Series ubifs: Fix two kmemleaks in error path | expand

Message

Zhihao Cheng Dec. 22, 2023, 2:50 a.m. UTC
First memleak is found by mounting corrupted UBIFS image with chk_index
enabled.
Second memleak is found by powercut testing for encryption scenario.

Zhihao Cheng (2):
  ubifs: dbg_check_idx_size: Fix kmemleak if loading znode failed
  ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path

 fs/ubifs/dir.c   | 3 +++
 fs/ubifs/super.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)