]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fix cleanup order of disk on init error
authorJavier González <jg@lightnvm.io>
Sat, 15 Apr 2017 18:55:43 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
commitf9b8dc44a6fcae958a9d8313f888adb18074fdb9
treef27c6b044f8c1abe71be1a19ffe817b9080e3f24
parentd4e018d4b45fec5459ca7ccd738108f7ffbc4f4b
lightnvm: fix cleanup order of disk on init error

Reorder disk allocation such that the disk structure can be put
safely.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c