From: Alan Stern Date: Mon, 7 Dec 2009 21:47:43 +0000 (-0500) Subject: USB: usb-storage: fix bug in fill_inquiry X-Git-Tag: v2.6.33-rc1~315^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3f6faa9edf67c1018270793e0547b0f81abb47e;p=pandora-kernel.git 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed