Skip to content
Commit 8a9af4fd authored by Sarah Sharp's avatar Sarah Sharp
Browse files

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: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
parent 585df1d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment