linux_dsm_epyc7002/drivers/scsi/aacraid
FUJITA Tomonori b271f1c881 [SCSI] aacraid: READ_CAPACITY_16 shouldn't trust allocation length in cdb
When aacraid spoofs READ_CAPACITY_16, it assumes that the data length
in the sg list is equal to allocation length in cdb. But sg can put
any value in scb so the driver needs to check both the data length in
the sg list and allocation length in cdb.

If allocation length is larger than the response length that the
driver expects, it clears the data buffer in the sg list to zero but
it doesn't need to do. Just setting resid is fine.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Mark Salyzyn <Mark_Salyzyn@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-04-07 12:15:40 -05:00
..
aachba.c [SCSI] aacraid: READ_CAPACITY_16 shouldn't trust allocation length in cdb 2008-04-07 12:15:40 -05:00
aacraid.h [SCSI] aacraid: add optional MSI support 2008-02-11 10:20:54 -06:00
commctrl.c [SCSI] aacraid: fib context lock for management ioctls (take 2) 2008-02-07 18:02:33 -06:00
comminit.c [SCSI] aacraid: fix big endian issues 2008-01-23 11:29:19 -06:00
commsup.c [SCSI] aacraid: ignore adapter reset check polarity 2008-02-11 10:20:54 -06:00
dpcsup.c [SCSI] aacraid: OS panic after Adapter panic (hardening). 2008-01-23 11:29:21 -06:00
linit.c [SCSI] aacraid: informational sysfs value corrections 2008-02-11 10:20:54 -06:00
Makefile [SCSI] aacraid: Begin adding support for new adapter type 2007-01-27 09:27:31 -06:00
nark.c [SCSI] aacraid: draw line in sand, sundry cleanup and version update 2007-07-27 09:13:28 -04:00
rkt.c [SCSI] aacraid: draw line in sand, sundry cleanup and version update 2007-07-27 09:13:28 -04:00
rx.c [SCSI] aacraid: add optional MSI support 2008-02-11 10:20:54 -06:00
sa.c [SCSI] aacraid: add optional MSI support 2008-02-11 10:20:54 -06:00
TODO [SCSI] aacraid: Newer adapter communication iterface support 2005-10-28 11:41:53 -05:00