aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2018-09-10 18:00:53 +0000
committerGreg Kroah-Hartman <[email protected]>2018-09-20 10:49:12 +0000
commitc9a4cb204e9eb7fa7dfbe3f7d3a674fa530aa193 (patch)
treec2dfa407774b6327f7bc364adc7fabc2935dd8a7 /drivers/net/xen-netback/interface.c
parentUSB: fix error handling in usb_driver_claim_interface() (diff)
downloadkernel-c9a4cb204e9eb7fa7dfbe3f7d3a674fa530aa193.tar.gz
kernel-c9a4cb204e9eb7fa7dfbe3f7d3a674fa530aa193.zip
USB: handle NULL config in usb_find_alt_setting()
usb_find_alt_setting() takes a pointer to a struct usb_host_config as an argument; it searches for an interface with specified interface and alternate setting numbers in that config. However, it crashes if the usb_host_config pointer argument is NULL. Since this is a general-purpose routine, available for use in many places, we want to to be more robust. This patch makes it return NULL whenever the config argument is NULL. Signed-off-by: Alan Stern <[email protected]> Reported-by: [email protected] CC: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions