diff options
author | Matias Bjørling <m@bjorling.me> | 2015-11-16 17:34:43 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-11-17 01:20:33 +0300 |
commit | c1480ad5943261e01a62eaa7132eab76f9c490e0 (patch) | |
tree | ad2c41ab89caa8ae004636b26d495be3f9bbef9b /drivers/nvme | |
parent | edad2e6606ee62dd7dfc5b001fae39c5c8015a55 (diff) | |
download | linux-c1480ad5943261e01a62eaa7132eab76f9c490e0.tar.xz |
lightnvm: prevent double free on init error
Both the nvm_register and nvm_init does a kfree(dev) on error. Make sure
to only free it once.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions