lightnvm: pblk: free write buffer on init failure
authorJavier González <javier@cnexlabs.com>
Fri, 5 Jan 2018 13:16:18 +0000 (14:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jan 2018 15:50:12 +0000 (08:50 -0700)
commitc6847e4e359f01745bad5aea0fa20a0c5edfdc51
tree7618567667cc581073520a6f0d008b94bc773058
parentcc4f5ba1fb6ebe977fb44293abebb79af77556f0
lightnvm: pblk: free write buffer on init failure

Refactor the way we free the write buffer to ensure that all entries get
freed in case of an error on the init sequence.

Signed-off-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