lightnvm: missing free on init error
authorMatias Bjørling <m@bjorling.me>
Fri, 20 Nov 2015 12:47:54 +0000 (13:47 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 20 Nov 2015 15:33:16 +0000 (08:33 -0700)
commit93e70c1f2883f2db2d6a1f339d0e26f00b138e4e
treea85eb5d1f16e4533ae52b5b36be06ebf59bf5dcb
parent480fc0db819d706ea5608545a12d33cf8d5a31ab
lightnvm: missing free on init error

If either max_phys_sect is out of bound, the nvm_dev structure is not
freed.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c