mirror-linux/drivers/usb
Aaro Koskinen 512d1ed968 usb: gadget: udc: do not clear gadget driver.bus
commit 30d09b3131 upstream.

Before the commit fc274c1e99 ("USB: gadget: Add a new bus for gadgets")
gadget driver.bus was unused. For whatever reason, many UDC drivers set
this field explicitly to NULL in udc_start(). With the newly added gadget
bus, doing this will crash the driver during the attach.

The problem was first reported, fixed and tested with OMAP UDC and g_ether.
Other drivers are changed based on code analysis only.

Fixes: fc274c1e99 ("USB: gadget: Add a new bus for gadgets")
Cc: stable <stable@kernel.org>
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20230201220125.GD2415@darkstar.musicnaut.iki.fi
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-09 11:28:21 +01:00
..
atm usb: move from strlcpy with unused retval to strscpy 2022-08-19 11:08:54 +02:00
c67x00
cdns3 usb: cdns3: remove fetched trb from cache before dequeuing 2023-01-24 07:24:38 +01:00
chipidea usb: chipidea: fix deadlock in ci_otg_del_timer 2022-11-09 12:34:18 +01:00
class USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
common Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout" 2023-01-18 11:58:33 +01:00
core usb: core: hub: disable autosuspend for TI TUSB8041 2023-01-24 07:24:35 +01:00
dwc2 usb: dwc2: Remove redundant license text 2022-09-22 15:52:29 +02:00
dwc3 usb: dwc3: qcom: enable vbus override when in OTG dr-mode 2023-02-09 11:28:14 +01:00
early
gadget usb: gadget: udc: do not clear gadget driver.bus 2023-02-09 11:28:21 +01:00
host usb: host: ehci-fsl: Fix module alias 2023-01-24 07:24:38 +01:00
image
isp1760
misc usb: misc: onboard_hub: Move 'attach' work to the driver 2023-01-24 07:24:35 +01:00
mon usb: mon: make mmapped memory read only 2022-09-22 15:52:29 +02:00
mtu3 usb: mtu3: fix failed runtime suspend in host only mode 2022-09-30 13:55:48 +02:00
musb usb: musb: fix error return code in omap2430_probe() 2023-01-24 07:24:38 +01:00
phy USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
renesas_usbhs
roles usb: roles: fix of node refcount leak in usb_role_switch_is_parent() 2022-12-31 13:32:41 +01:00
serial USB: serial: cp210x: add SCALANCE LPE-9000 device id 2023-01-24 07:24:38 +01:00
storage usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210 2023-01-24 07:24:38 +01:00
typec usb: typec: ucsi: Don't attempt to resume the ports before they exist 2023-02-09 11:28:21 +01:00
usbip use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
Kconfig
Makefile
usb-skeleton.c