mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
lightnvm: pblk: fix double-free on pblk init
Prevent pblk->lines being double freed in case of an error during pblk
initialization.
Fixes: dd2a434373: "lightnvm: pblk: sched. metadata on write thread"
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Javier González <[email protected]>
Signed-off-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
f417aa0bd8
commit
2950e7e610
1 changed files with 0 additions and 2 deletions
|
|
@ -812,8 +812,6 @@ add_emeta_page:
|
|||
fail_free_lines:
|
||||
while (--i >= 0)
|
||||
pblk_free_line_bitmaps(&pblk->lines[i]);
|
||||
|
||||
kfree(pblk->lines);
|
||||
fail_free_bb_aux:
|
||||
kfree(l_mg->bb_aux);
|
||||
fail_free_bb_template:
|
||||
|
|
|
|||
Loading…
Reference in a new issue