mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
Revert "ubifs: dirty_cow_znode: Fix memleak in error handling path"
This reverts commit122deabfe1(ubifs: dirty_cow_znode: Fix memleak in error handling path). After commit122deabfe1applied, if insert_old_idx() failed, old index neither exists in TNC nor in old-index tree. Which means that old index node could be overwritten in layout_leb_in_gaps(), then ubifs image will be corrupted in power-cut. Fixes:122deabfe1(ubifs: dirty_cow_znode: Fix memleak ... path) Cc: stable@vger.kernel.org Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
3a36d20e01
commit
7d01cb27f6
1 changed files with 1 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue