]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: fix double-free on pblk init
authorJavier González <jg@lightnvm.io>
Fri, 30 Jun 2017 15:56:35 +0000 (17:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Jun 2017 17:08:18 +0000 (11:08 -0600)
commit2950e7e61089de0e7058fdf04a53d25e078f2230
tree6dc10f064c0f903a393ae194cd247fe6e7d7bf8c
parentf417aa0bd8c4b8fd3fecbc23819a994436709dcc
lightnvm: pblk: fix double-free on pblk init

Prevent pblk->lines being double freed in case of an error during pblk
initialization.

Fixes: dd2a43437337: "lightnvm: pblk: sched. metadata on write thread"
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c