summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/stex.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2007-02-16 01:46:38 -0800
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-02-16 10:13:01 -0600
commite423ee31db92d4e298c137814a4341e1cd05739e (patch)
tree17622000bd706e1f69b1ad512e5a5af3ae93b2d4 /drivers/scsi/stex.c
parenta29fdd3c2a3e53b67baa5031372fd78fddaf48fa (diff)
downloadblackbird-op-linux-e423ee31db92d4e298c137814a4341e1cd05739e.tar.gz
blackbird-op-linux-e423ee31db92d4e298c137814a4341e1cd05739e.zip
[SCSI] scsi_scan.c: handle bad inquiry responses
A particular USB device has been reporting short inquiry lengths. The SCSI code cannot operate properly unless we get an inquiry length of 36 or above (because of the way we parse vendor and product), so assume at least 36 bytes are valid even if the device reports fewer. This is wrong, but it's no worse than what we're doing now (using the garbage beyond the last reported valid byte). Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/stex.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud