Fix scsi_cdb_read6()

The maximum number of blocks that can be transferred at once via a READ6
command is 256 instead of 265.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
Bart Van Assche
2013-05-29 18:07:20 +02:00
committed by Ronnie Sahlberg
parent 9dce01bbea
commit 7b011a5ee2

View File

@@ -1400,7 +1400,7 @@ scsi_cdb_read6(uint32_t lba, uint32_t xferlen, int blocksize)
int num_blocks;
num_blocks = xferlen/blocksize;
if (num_blocks > 265) {
if (num_blocks > 256) {
return NULL;
}