summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/seagate.c
diff options
context:
space:
mode:
authorJames Bottomley2006-12-11 16:47:06 +0100
committerJames Bottomley2007-01-03 23:57:35 +0100
commit4ed381ee559ebfab32d3b21896c204992c36179a (patch)
treeac0f8be42418ecb7a7b4b5d02b5bfa6e274e84fc /drivers/scsi/seagate.c
parent[SCSI] Add missing completion to scsi_complete_async_scans() (diff)
downloadkernel-qcow2-linux-4ed381ee559ebfab32d3b21896c204992c36179a.tar.gz
kernel-qcow2-linux-4ed381ee559ebfab32d3b21896c204992c36179a.tar.xz
kernel-qcow2-linux-4ed381ee559ebfab32d3b21896c204992c36179a.zip
[SCSI] scsi_transport_spi: fix sense buffer size error
The code does this: unsigned char sense[SCSI_SENSE_BUFFERSIZE]; ... scsi_normalize_sense(sense, sizeof(*sense), sshdr) however the sizeof will return 1 not 96 which means the sense data will have no valid ASC/ASCQ values. Fix by putting the correct sense size. The only affected case for this would have been the DV buffer sanity check failure, which is fortunately quite rare. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/seagate.c')
0 files changed, 0 insertions, 0 deletions