diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-02-24 15:25:23 -0800 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-07 12:15:40 -0500 |
commit | b271f1c881ff301ba1fbb52698d4f2b91858f421 (patch) | |
tree | 630df6fc88f323fb491ba9ed4bb282c804ae136d /drivers/scsi/ips.c | |
parent | b174be02f3634460ac215d249617dee5ae446ae1 (diff) | |
download | op-kernel-dev-b271f1c881ff301ba1fbb52698d4f2b91858f421.zip op-kernel-dev-b271f1c881ff301ba1fbb52698d4f2b91858f421.tar.gz |
[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>
Diffstat (limited to 'drivers/scsi/ips.c')
0 files changed, 0 insertions, 0 deletions