Date: Fri, 4 May 2012 23:45:34 +0000 (UTC) From: Jim Harris <jimharris@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r235043 - head/sys/dev/isci/scil Message-ID: <201205042345.q44NjYJq028264@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jimharris Date: Fri May 4 23:45:34 2012 New Revision: 235043 URL: http://svn.freebsd.org/changeset/base/235043 Log: 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 Modified: head/sys/dev/isci/scil/sati_inquiry.c Modified: head/sys/dev/isci/scil/sati_inquiry.c ============================================================================== --- head/sys/dev/isci/scil/sati_inquiry.c Fri May 4 23:33:40 2012 (r235042) +++ head/sys/dev/isci/scil/sati_inquiry.c Fri May 4 23:45:34 2012 (r235043) @@ -359,7 +359,7 @@ void sati_inquiry_block_device_translate ); //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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205042345.q44NjYJq028264>