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

Zhihao Cheng chengzhihao1 at huawei.com
Thu Dec 21 18:50:23 PST 2023


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(-)

-- 
2.39.2




More information about the linux-mtd mailing list