]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: check for chunk size before allocating it
authorJavier González <javier@javigon.com>
Fri, 1 Jun 2018 13:04:23 +0000 (15:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Jun 2018 13:43:53 +0000 (07:43 -0600)
commit276545672e67ccad14f6fab3064537ff35310912
treec0b396d03dece80503fc00f093102d4c11e1a6db
parent1e5a9ae9b621641583ce7abdb79406fe3f4e376d
lightnvm: pblk: check for chunk size before allocating it

Do the check for the chunk state after making sure that the chunk type
is supported.

Fixes: ba7de9f1c4a0 ("lightnvm: pblk: implement get log report chunk")
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c