]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: fix error path in pblk_lines_alloc_metadata
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 13 Oct 2017 12:45:54 +0000 (14:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit4da7361e921c57500127548320a28598e37a36e2
tree8bbff36b9847bebdac26eeaf7736838ffc265ea5
parentd02d184e2f104d6ba0a255116fea7d188a898664
lightnvm: pblk: fix error path in pblk_lines_alloc_metadata

Use appropriate memory free calls based on allocation type used and
also fix number of times free is called if kmalloc fails.

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