android_kernel_xiaomi_sm8350/drivers/usb/storage
Alan Stern f3f6faa9ed USB: usb-storage: fix bug in fill_inquiry
This patch (as1312) fixes a minor bug in usb-storage.  The
fill_inquiry() routine neglects to pre-load the inquiry data buffer
with spaces.  As a result, if the vendor name is shorter than 8
characters or the product name is shorter than 16, the remainder will
be filled with garbage.

The patch also removes some unnecessary calls to strlen().

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-12-11 11:55:26 -08:00
..
alauda.c
cypress_atacb.c
datafab.c
debug.c
debug.h
freecom.c
initializers.c
initializers.h
isd200.c
jumpshot.c
karma.c
Kconfig
libusual.c
Makefile
onetouch.c
option_ms.c
option_ms.h
protocol.c
protocol.h
scsiglue.c USB: usb-storage: Associate the name of the interface with the scsi host 2009-12-11 11:55:13 -08:00
scsiglue.h
sddr09.c
sddr55.c
shuttle_usbat.c
sierra_ms.c
sierra_ms.h
transport.c USB: usb-storage: add BAD_SENSE flag 2009-12-11 11:55:26 -08:00
transport.h
unusual_alauda.h
unusual_cypress.h
unusual_datafab.h
unusual_devs.h USB: usb-storage: add BAD_SENSE flag 2009-12-11 11:55:26 -08:00
unusual_freecom.h
unusual_isd200.h
unusual_jumpshot.h
unusual_karma.h
unusual_onetouch.h
unusual_sddr09.h
unusual_sddr55.h
unusual_usbat.h
usb.c USB: usb-storage: fix bug in fill_inquiry 2009-12-11 11:55:26 -08:00
usb.h USB: usb-storage: Associate the name of the interface with the scsi host 2009-12-11 11:55:13 -08:00
usual-tables.c