diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-12-07 16:47:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 11:55:26 -0800 |
commit | f3f6faa9edf67c1018270793e0547b0f81abb47e (patch) | |
tree | b3f9466d4cca6ee280917190b346bfe3a1a790e3 /include/media/upd64083.h | |
parent | a0bb108112a872c0b0c4b3ef4974f95fb75b155d (diff) |
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 'include/media/upd64083.h')
0 files changed, 0 insertions, 0 deletions