linux-stable/drivers/usb
Dan Carpenter 5458a0a579 usb: gadget: udc: fix NULL dereference in remove()
[ Upstream commit 016da9c65f ]

The "udc" pointer was never set in the probe() function so it will
lead to a NULL dereference in udc_pci_remove() when we do:

	usb_del_gadget_udc(&udc->gadget);

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/ZG+A/dNpFWAlCChk@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-28 11:14:19 +02:00
..
atm
c67x00
cdns3 usb: cdns3: fix NCM gadget RX speed 20x slow than expection at iMX8QM 2023-06-09 10:48:15 +02:00
chipidea usb: chipidea: fix missing goto in `ci_hdrc_probe` 2023-05-11 23:17:27 +09:00
class USB: usbtmc: Fix direction for 0-length ioctl control messages 2023-05-24 17:30:19 +01:00
common Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
core usb: usbfs: Use consistent mmap functions 2023-06-14 11:16:59 +02:00
dwc2 usb: dwc2: fix a race, don't power off/on phy for dual-role mode 2023-03-23 19:13:16 +01:00
dwc3 usb: dwc3: gadget: Reset num TRBs before giving back the request 2023-06-21 16:02:12 +02:00
early usb: early: xhci-dbc: Use memcpy_and_pad() 2023-01-31 10:40:54 +01:00
fotg210 USB: fotg210: fix memory leak with using debugfs_lookup() 2023-02-06 13:46:42 +01:00
gadget usb: gadget: udc: fix NULL dereference in remove() 2023-06-28 11:14:19 +02:00
host xhci: Fix incorrect tracking of free space on transfer rings 2023-05-24 17:30:20 +01:00
image
isp1760
misc USB: sisusbvga: Add endpoint checks 2023-05-30 14:17:24 +01:00
mon mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
mtu3 usb: mtu3: fix kernel panic at qmu transfer done irq handler 2023-05-11 23:17:27 +09:00
musb usb: musb: sunxi: Introduce config struct 2023-02-02 11:13:42 +01:00
phy Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
renesas_usbhs
roles driver core: make struct device_type.uevent() take a const * 2023-01-27 13:45:36 +01:00
serial USB: serial: option: add Quectel EM061KGL series 2023-06-21 16:02:12 +02:00
storage usb-storage: fix deadlock when a scsi command timeouts more than once 2023-05-24 17:30:19 +01:00
typec usb: typec: Fix fast_role_swap_current show function 2023-06-21 16:02:12 +02:00
usbip Including fixes from bpf, netfilter and can. 2022-12-21 08:41:32 -08:00
Kconfig
Makefile
usb-skeleton.c usb: add usb_set_intfdata() documentation 2022-11-29 08:56:09 +01:00