diff options
author | 2009-12-07 16:47:43 -0500 | |
---|---|---|
committer | 2009-12-11 11:55:26 -0800 | |
commit | f3f6faa9edf67c1018270793e0547b0f81abb47e (patch) | |
tree | b3f9466d4cca6ee280917190b346bfe3a1a790e3 /lib/bug.c | |
parent | USB: usb-storage: add BAD_SENSE flag (diff) | |
download | wireguard-linux-f3f6faa9edf67c1018270793e0547b0f81abb47e.tar.xz wireguard-linux-f3f6faa9edf67c1018270793e0547b0f81abb47e.zip |
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>
Diffstat (limited to 'lib/bug.c')
0 files changed, 0 insertions, 0 deletions