commit | c9d84b350f9b253872fc24f4dcfea166c884ee15 | [log] [tgz] |
---|---|---|
author | Rakesh Pandit <rakesh@tuxera.com> | Fri Oct 13 14:45:54 2017 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Oct 13 08:34:57 2017 -0600 |
tree | 8bbff36b9847bebdac26eeaf7736838ffc265ea5 | |
parent | a96d50fa0c8d3e399c49a0a90ddbbaabf8a46bb3 [diff] |
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>