commit | 0e5ffd1cb5f7ce19f23cc829d5dc3ebb1491570f | [log] [tgz] |
---|---|---|
author | Matias Bjørling <matias@cnexlabs.com> | Wed Feb 15 16:25:32 2017 +0100 |
committer | Jens Axboe <axboe@fb.com> | Wed Feb 15 08:27:19 2017 -0700 |
tree | a1e8f48934b75dd5e7e0cd9f6c292c82f24be26b | |
parent | 0222967ba05a0a0f845f7dd54fb3da82afae024d [diff] |
lightnvm: fix off-by-one error on target initialization If one specifies the end lun id to be the absolute number of luns, without taking zero indexing into account, the lightnvm core will pass the off-by-one end lun id to target creation, which then panics during nvm_ioctl_dev_create. Signed-off-by: Matias Bjørling <matias@cnexlabs.com> Signed-off-by: Jens Axboe <axboe@fb.com>