Pan Bian 9778448175 lightnvm: fix memory leak when submit fails
The allocated page is not released if error occurs in
nvm_submit_io_sync_raw(). __free_page() is moved ealier to avoid
possible memory leak issue.

Fixes: aff3fb18f957 ("lightnvm: move bad block and chunk state logic to core")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-01-21 05:45:51 -07:00
..
2021-01-03 14:54:44 -07:00
2018-01-05 08:50:12 -07:00
2019-03-07 08:59:26 -07:00
2019-11-27 07:44:25 +01:00