lightnvm: pblk: use vfree to free metadata on error path
authorHans Holmberg <hans.holmberg@cnexlabs.com>
Mon, 11 Feb 2019 12:25:03 +0000 (13:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Feb 2019 15:18:07 +0000 (08:18 -0700)
commit6916cf5426d08ea8be50ab4ba7ff86ea022cdff3
tree7bdbb122c8415ac097d00a1a5a8e38cbd5b572ef
parentf9324980d7300f961e9895ad94d5ea71c0fe187e
lightnvm: pblk: use vfree to free metadata on error path

As chunk metadata is allocated using vmalloc, we need to free it
using vfree.

Fixes: 090ee26fd512 ("lightnvm: use internal allocation for chunk log page")
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c