linux_dsm_epyc7002/drivers/lightnvm
Pan Bian 73171b677f lightnvm: fix memory leak when submit fails
commit 97784481757fba7570121a70dd37ca74a29f50a8 upstream.

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: aff3fb18f9 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-27 11:55:22 +01:00
..
core.c lightnvm: fix memory leak when submit fails 2021-01-27 11:55:22 +01:00
Kconfig lightnvm: select CONFIG_CRC32 2021-01-17 14:17:03 +01:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
pblk-cache.c lightnvm/pblk: use bio_{start,end}_io_acct 2020-05-27 05:21:23 -06:00
pblk-core.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
pblk-gc.c lightnvm: pblk: use kvmalloc for metadata 2019-08-06 08:20:10 -06:00
pblk-init.c block: move ->make_request_fn to struct block_device_operations 2020-07-01 07:27:24 -06:00
pblk-map.c lightnvm: pblk: ensure that erase is chunk aligned 2019-05-06 10:19:17 -06:00
pblk-rb.c lightnvm: pblk: simplify partial read path 2019-05-06 10:19:19 -06:00
pblk-read.c block: rename generic_make_request to submit_bio_noacct 2020-07-01 07:27:24 -06:00
pblk-recovery.c lightnvm: remove set but not used variables 'data_len' and 'rq_len' 2019-08-08 07:34:34 -06:00
pblk-rl.c pblk: fix max_io calculation 2019-03-07 08:59:26 -07:00
pblk-sysfs.c lightnvm: pblk: Use scnprintf() for avoiding potential buffer overflow 2020-03-12 07:39:05 -06:00
pblk-trace.h ftrace: Rework event_create_dir() 2019-11-27 07:44:25 +01:00
pblk-write.c lightnvm: move metadata mapping to lower level driver 2019-08-06 08:20:10 -06:00
pblk.h lightnvm: pblk: use kvmalloc for metadata 2019-08-06 08:20:10 -06:00