Skip to content
Commit edee1bdd authored by Javier González's avatar Javier González Committed by Jens Axboe
Browse files

lightnvm: double-clear of dev->lun_map on target init error



The dev->lun_map bits are cleared twice if an target init error occurs.
First in the target clean routine, and then next in the nvm_tgt_create
error function. Make sure that it is only cleared once by extending
nvm_remove_tgt_devi() with a clear bit, such that clearing of bits can
ignored when cleaning up a successful initialized target.

Signed-off-by: default avatarJavier González <javier@cnexlabs.com>
Fix style.
Signed-off-by: default avatarMatias Bjørling <matias@cnexlabs.com>

Signed-off-by: default avatarMatias Bjørling <matias@cnexlabs.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent b0e0306c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment