aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/tnc_commit.c
diff options
context:
space:
mode:
authorZhihao Cheng <[email protected]>2019-10-29 12:58:23 +0000
committerRichard Weinberger <[email protected]>2019-11-17 21:22:54 +0000
commit10256f000932f12596dc043cf880ecf488a32510 (patch)
treef4dcff26c9a18d61c8603ff195034ac98b5127ea /fs/ubifs/tnc_commit.c
parentRevert "ubifs: Fix memory leak bug in alloc_ubifs_info() error path" (diff)
downloadkernel-10256f000932f12596dc043cf880ecf488a32510.tar.gz
kernel-10256f000932f12596dc043cf880ecf488a32510.zip
ubifs: do_kill_orphans: Fix a memory leak bug
If there are more than one valid snod on the sleb->nodes list, do_kill_orphans will malloc ino more than once without releasing previous ino's memory. Finally, it will trigger memory leak. Fixes: ee1438ce5dc4 ("ubifs: Check link count of inodes when...") Signed-off-by: Zhihao Cheng <[email protected]> Signed-off-by: zhangyi (F) <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'fs/ubifs/tnc_commit.c')
0 files changed, 0 insertions, 0 deletions