diff options
author | jimharris <jimharris@FreeBSD.org> | 2012-05-04 23:45:34 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2012-05-04 23:45:34 +0000 |
commit | f427ad6df40bb529a6b2cb5ec33c674170a31697 (patch) | |
tree | a2d9bb405fe1aed3e85d551f7642892ab8fd246d /sys/dev | |
parent | c1bb05ca5822c26353e0bf781439b3ffa9eec599 (diff) | |
download | FreeBSD-src-f427ad6df40bb529a6b2cb5ec33c674170a31697.zip FreeBSD-src-f427ad6df40bb529a6b2cb5ec33c674170a31697.tar.gz |
Fix off-by-one error in sati_inquiry_block_device_translate_data(). Bug would
result in INQUIRY VPD 0x81 to SATA devices to return only 63 bytes of data
instead of 64 during SCSI/ATA translation.
Sponsored by: Intel
Approved by: scottl
MFC after: 1 week
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isci/scil/sati_inquiry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/isci/scil/sati_inquiry.c b/sys/dev/isci/scil/sati_inquiry.c index 8da6325..cbf096e 100644 --- a/sys/dev/isci/scil/sati_inquiry.c +++ b/sys/dev/isci/scil/sati_inquiry.c @@ -359,7 +359,7 @@ void sati_inquiry_block_device_translate_data( ); //bytes 8-63 are reserved - for(offset = 8; offset < 63; offset++) + for(offset = 8; offset < 64; offset++) { sati_set_data_byte(sequence, scsi_io, offset, 0x00); } |