USB Storage: indistinguishable devices with broken and unbroken firmware
commit61bf54b71d5abf767ee46284be19965d7253ddbf
authorOliver Neukum <oneukum@suse.de>
Thu, 8 Feb 2007 08:04:48 +0000 (8 09:04 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Feb 2007 23:32:19 +0000 (16 15:32 -0800)
tree04bda12e495bc19be2712dff9da35f5e3271691a
parent5b06470816fb5e658e81db2a55b530ff2ba711c9
USB Storage: indistinguishable devices with broken and unbroken firmware

there's a USB mass storage device which exists in two version. One
reports the correct size and the other does not. Apart from that they
are identical and cannot be told apart. Here's a heuristic based on the
empirical finding that drives have even sizes.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/sd.c
drivers/usb/storage/scsiglue.c
drivers/usb/storage/unusual_devs.h
include/linux/usb_usual.h
include/scsi/scsi_device.h