Commit 7d01cb2
Revert "ubifs: dirty_cow_znode: Fix memleak in error handling path"
This reverts commit 122deab (ubifs: dirty_cow_znode: Fix memleak
in error handling path).
After commit 122deab applied, 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: 122deab (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>1 parent 3a36d20 commit 7d01cb2
1 file changed
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 270 | + | |
277 | 271 | | |
278 | 272 | | |
279 | 273 | | |
280 | 274 | | |
281 | | - | |
282 | 275 | | |
283 | 276 | | |
284 | 277 | | |
| |||
0 commit comments