linux/drivers/usb/gadget
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
..
function usb: gadget: f_uac2: Fix incorrect increment of bNumEndpoints 2023-02-09 11:28:21 +01:00
legacy usb: gadget: g_webcam: Send color matching descriptor per frame 2023-01-24 07:24:38 +01:00
udc usb: gadget: udc: do not clear gadget driver.bus 2023-02-09 11:28:21 +01:00
composite.c USB: gadget: Rename usb_gadget_probe_driver() 2022-04-26 14:00:13 +02:00
config.c
configfs.c USB: gadget: Add ID numbers to configfs-gadget driver names 2023-01-24 07:24:38 +01:00
configfs.h
epautoconf.c
functions.c
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile usb: gadget: Makefile: remove ccflags-y 2022-03-18 12:56:08 +01:00
u_f.c
u_f.h
u_os_desc.h
usbstring.c