From: Sarah Sharp Date: Tue, 9 Aug 2011 23:31:54 +0000 (-0700) Subject: USB: Avoid NULL pointer deref in usb_hcd_alloc_bandwidth. X-Git-Tag: v3.1-rc4~5^2~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a9af4fdf6d5eeb3200a088354d266a87e8260b0;p=pandora-kernel.git USB: Avoid NULL pointer deref in usb_hcd_alloc_bandwidth. usb_ifnum_to_if() can return NULL if the USB device does not have a configuration installed (usb_device->actconfig == NULL), or if we can't find the interface number in the installed configuration. Return an error instead of crashing. Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed