aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2009-12-07 16:47:43 -0500
committerGreg Kroah-Hartman <[email protected]>2009-12-11 11:55:26 -0800
commitf3f6faa9edf67c1018270793e0547b0f81abb47e (patch)
treeb3f9466d4cca6ee280917190b346bfe3a1a790e3 /net/lapb/lapb_iface.c
parenta0bb108112a872c0b0c4b3ef4974f95fb75b155d (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 <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions