de5ffac4ec
The SCSI read and write functions use the same LBA range check, so move it up to spdk_bdev_scsi_readwrite(). spdk_bdev_scsi_read() previously passed task->transfer_len / blen rather than xfer_len to the LBA range checking function, but this should actually be using the transfer length field from the CDB (which is the xfer_len parameter). Change-Id: I8285abf936a18a0baf7cc25709945637e4e6b87d Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>