linux-stable/drivers/usb
Mathias Nyman 4a593a62a9 xhci: Fix null pointer dereference in remove if xHC has only one roothub
The remove path in xhci platform driver tries to remove and put both main
and shared hcds even if only a main hcd exists (one roothub)

This causes a null pointer dereference in reboot for those controllers.

Check that the shared_hcd exists before trying to remove it.

Fixes: e0fe986972 ("usb: host: xhci-plat: prepare operation w/o shared hcd")
Reported-by: Alexey Sheplyakov <asheplyakov@basealt.ru>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220825150840.132216-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 17:48:30 +02:00
..
atm usb/atm: fix repeated words in comments 2022-07-27 14:32:20 +02:00
c67x00 USB: c67x00: remove unnecessary check of res 2022-05-12 11:36:46 +02:00
cdns3 usb: cdns3: Don't use priv_dev uninitialized in cdns3_gadget_ep_enable() 2022-08-04 11:53:48 -07:00
chipidea Tracing updates for 5.20 / 6.0 2022-08-05 09:41:12 -07:00
class USB: cdc-acm: Add Icom PMR F3400 support (0c26:0020) 2022-08-19 11:12:43 +02:00
common usb: common: usb-conn-gpio: Allow wakeup from system suspend 2022-06-10 11:48:41 +02:00
core dma-mapping updates 2022-08-06 10:56:45 -07:00
dwc2 usb: dwc2: drop unexpected word "the" in the comments 2022-06-24 13:37:34 +02:00
dwc3 usb: dwc3: qcom: suppress unused-variable warning 2022-08-23 08:40:28 +02:00
early usb: early: xhci-dbc: Fix xdbc number parsing 2022-03-15 18:20:34 +01:00
gadget usb: gadget: f_uac2: fix superspeed transfer 2022-08-19 11:11:16 +02:00
host xhci: Fix null pointer dereference in remove if xHC has only one roothub 2022-08-25 17:48:30 +02:00
image usb/image: fix repeated words in comments 2022-07-27 14:33:53 +02:00
isp1760 usb: isp1760: Fix out-of-bounds array access 2022-05-19 18:10:59 +02:00
misc usb: misc: onboard_usb_hub: Drop reset delay in onboard_hub_power_off() 2022-08-18 21:10:59 +02:00
mon
mtu3 Tracing updates for 5.20 / 6.0 2022-08-05 09:41:12 -07:00
musb musb: fix USB_MUSB_TUSB6010 dependency 2022-08-18 16:33:06 +02:00
phy usb: phy: remove redundant store to variable var after & operation 2022-07-27 14:24:50 +02:00
renesas_usbhs usb: renesas: Fix refcount leak bug 2022-06-21 16:39:03 +02:00
roles
serial USB-serial updates for 5.20-rc1 2022-07-25 11:28:52 +02:00
storage usb-storage: Add ignore-residue quirk for NXP PN7462AU 2022-08-18 17:18:05 +02:00
typec Revert "usb: typec: ucsi: add a common function ucsi_unregister_connectors()" 2022-08-23 09:28:11 +02:00
usbip usbip: vudc: Don't enable IRQs prematurely 2022-06-10 11:48:19 +02:00
Kconfig
Makefile
usb-skeleton.c usb: usb-skeleton: Update min() to min_t() 2021-10-05 12:56:48 +02:00