lightnvm: pblk: fix memory leak on error path
authorJavier González <jg@lightnvm.io>
Fri, 21 Apr 2017 23:32:47 +0000 (01:32 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 23 Apr 2017 22:57:52 +0000 (16:57 -0600)
commit33db9fd46ea8e3e6d4757d99a3f97bd1a0c919f3
treee208433154c5ed4f4bbe9ede6eed20032324b6a4
parentf3236cef5a206c27a624b8a813ddc1ebc4c6637a
lightnvm: pblk: fix memory leak on error path

When write recovery fails, Free memory for the recovery structure.

Fixes: a4bd217b4326 "lightnvm: physical block device (pblk) target"

Signed-off-by: Javier González <javier@cnexlabs.com>
Reviewed-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/pblk-write.c