cvs commit: src/sys/cam cam_xpt.c
Justin T. Gibbs
gibbs at FreeBSD.org
Thu Nov 18 04:14:32 GMT 2004
gibbs 2004-11-18 04:14:32 UTC
FreeBSD src repository
Modified files:
sys/cam cam_xpt.c
Log:
Correct an off-by-one in the calculation of the inquiry buffer length
to request from devices during the "long inquiry" portion of our probe.
This same bug was fixed in the 4.x stream a few years ago, but the fix
was never propogated to -current.
This fix is slightly different than in -stable:
o Use offsetof() instead of a hard coded constant so as the make
the code more self-explainatory.
o Round odd long inquiry lengths up so as to avoid tickling ignore
wide residue bugs in broken parallel SCSI devices running with a
wide transfer negotiation.
MFC: 3 days
Revision Changes Path
1.144 +11 -1 src/sys/cam/cam_xpt.c
More information about the cvs-src
mailing list