]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: fix pblk_lines_init error handling path
authorHans Holmberg <hans.holmberg@cnexlabs.com>
Tue, 11 Dec 2018 19:16:15 +0000 (20:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Dec 2018 19:22:34 +0000 (12:22 -0700)
commit2bbe2075e79b55234ee4b3849fffb7c6fc3daaa5
treea0546e51aa0b85eed524eadb813eb88872db5367
parent89f2ecc9605a9035a4d23cf4000b938bfd76d90b
lightnvm: pblk: fix pblk_lines_init error handling path

The chunk metadata is allocated with vmalloc, so we need to use
vfree to free it.

Fixes: 147885d1c77f ("lightnvm: use internal allocation for chunk log page")
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Reviewed-by: Javier González <javier@javigon.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c