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
This commit is contained in:
Jim Harris 2012-05-04 23:45:34 +00:00
parent a48b6a8585
commit e0e3e85dc0

View file

@ -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);
}