lightnvm: pblk: fix releases of kmem cache in error path
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 13 Oct 2017 12:46:33 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit22a4e061ea11cc754785a12b3ba5f3e135bc0c63
tree8899960886f3716486a317a4349375d2dc851b13
parent05ed3447698203219319ec9d1c46303aff5932a2
lightnvm: pblk: fix releases of kmem cache in error path

If pblk_core_init fails lets destroy all global caches.

Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c