summaryrefslogtreecommitdiff
path: root/drivers/scsi/device_handler
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2009-08-11 15:59:09 (GMT)
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 22:52:23 (GMT)
commit95a3639e275fb7aec5c9a2116c88a2cdd23e0b8b (patch)
tree115b3d4fecf7e9089000c9f4bf5558be99670bf0 /drivers/scsi/device_handler
parent5f91bb050ecc4ff1d8d3d07edbe550c8f431c5e1 (diff)
downloadlinux-fsl-qoriq-95a3639e275fb7aec5c9a2116c88a2cdd23e0b8b.tar.xz
[SCSI] fix bugs in scsi_vpd_inquiry()
Universally, SCSI functions assume the lengths fed in are those of the buffer to DMA data to, not the lengths of the data minus the header. scsi_vpd_inquiry() assumed the latter and got it wrong, so fix up all the functions to use the correct assumption (and fix a bug where INQUIRY in SCSI-2 dcannot go over 255). [jejb: Matthew posted an identical version of this at the same time I did] Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/device_handler')
0 files changed, 0 insertions, 0 deletions