diff options
author | Aaro Koskinen | 2023-02-02 00:01:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-02-09 11:28:21 +0100 |
commit | 512d1ed968d535fb7df5cde57f30009c17bbf509 (patch) | |
tree | 7810e4349fe5d543f719768baf141425a64ce8bb /drivers/usb/storage/shuttle_usbat.c | |
parent | fdd11d7136fd070b3a74d6d8799d9eac28a57fc5 (diff) |
usb: gadget: udc: do not clear gadget driver.bus
commit 30d09b3131f5b1b9d54ad9b7ee171a45e21362b3 upstream.
Before the commit fc274c1e9973 ("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: fc274c1e9973 ("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>
Diffstat (limited to 'drivers/usb/storage/shuttle_usbat.c')
0 files changed, 0 insertions, 0 deletions