diff options
author | Javier González <jg@lightnvm.io> | 2017-04-15 20:55:42 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-16 10:06:25 -0600 |
commit | edee1bdd66bf0fda46a176bc3ee5c992dbbc466e (patch) | |
tree | e899f7abec10a0cffd5e89883411360efcab8a4f /drivers/uio | |
parent | b0e0306ce14180baee00cea9be5600eef6750af8 (diff) | |
download | linux-stable-edee1bdd66bf0fda46a176bc3ee5c992dbbc466e.tar.gz linux-stable-edee1bdd66bf0fda46a176bc3ee5c992dbbc466e.tar.bz2 linux-stable-edee1bdd66bf0fda46a176bc3ee5c992dbbc466e.zip |
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: Javier González <javier@cnexlabs.com>
Fix style.
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/uio')
0 files changed, 0 insertions, 0 deletions