nvmet: Make dsm number of ranges zero based
authorAlexander Solganik <sashas@lightbitslabs.com>
Wed, 21 Sep 2016 21:12:38 +0000 (14:12 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Fri, 23 Sep 2016 22:37:38 +0000 (15:37 -0700)
commit2e5d0baa04845dc3a3d7dfa33d7663de270bb146
tree62be77922deaf9006113615ab7bb162cad3ec4e5
parent9b349b080ca9777f6dab3da06d7fa4577f7d4c29
nvmet: Make dsm number of ranges zero based

This caused the nvmet request data length to be
incorrect.

Signed-off-by: Alexander Solganik <sashas@lightbitslabs.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/io-cmd.c