Files
linux/drivers/lightnvm
tangzhenhao f87905660e drivers/lightnvm: fix a null-ptr-deref bug in pblk-core.c
At line 294 in drivers/lightnvm/pblk-write.c, function pblk_gen_run_ws is
called with actual param GFP_ATOMIC. pblk_gen_run_ws call mempool_alloc
using "GFP_ATOMIC" flag, so mempool_alloc can return null. So we need to
check the return-val of mempool_alloc to avoid null-ptr-deref bug.

Signed-off-by: tangzhenhao <[email protected]>
Reviewed-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
2020-12-08 10:02:45 -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