diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-10-09 13:12:13 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-09 16:25:08 +0200 |
commit | a70985f83c625a5eaf618be81621e5e4521a66c6 (patch) | |
tree | 43ba48e94d8a631a52eda2ef14c5abf107e1c8e8 /mm/memtest.c | |
parent | lightnvm: do no update csecs and sos on 1.2 (diff) | |
download | linux-a70985f83c625a5eaf618be81621e5e4521a66c6.tar.xz linux-a70985f83c625a5eaf618be81621e5e4521a66c6.zip |
lightnvm: pblk: fix error handling of pblk_lines_init()
In the too many bad blocks error handling case, we should release all
the allocated resources, otherwise it will cause memory leak.
Fixes: 2deeefc02dff ("lightnvm: pblk: fail gracefully on line alloc. failure")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/memtest.c')
0 files changed, 0 insertions, 0 deletions