diff options
author | ken <ken@FreeBSD.org> | 2002-10-08 17:12:44 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2002-10-08 17:12:44 +0000 |
commit | 13b9c6f27783f72ef6cab6bd1673e771b14c5fac (patch) | |
tree | c00e854bd93c15195f7d644fcefd33bf48b8fba0 /sys/cam | |
parent | 07c608aac18d3af7e2b2fe0e66619969f3d8aceb (diff) | |
download | FreeBSD-src-13b9c6f27783f72ef6cab6bd1673e771b14c5fac.zip FreeBSD-src-13b9c6f27783f72ef6cab6bd1673e771b14c5fac.tar.gz |
Fix the location of the length bytes in the 12-byte read/write CDB
structure. This has been broken since 1998, but probably hasn't been
noticed because it takes a read/write of 64K blocks (32MB with 512 byte
blocks) to trigger using the 12 byte read/write CDB in scsi_read_write().
Submitted by: "Moore, Eric Dean" <emoore@lsil.com>
MFC after: 3 days
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_all.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h index beef3d8..7841b3c 100644 --- a/sys/cam/scsi/scsi_all.h +++ b/sys/cam/scsi/scsi_all.h @@ -436,8 +436,8 @@ struct scsi_rw_12 #define SRW12_DPO 0x10 u_int8_t byte2; u_int8_t addr[4]; - u_int8_t reserved; u_int8_t length[4]; + u_int8_t reserved; u_int8_t control; }; |