android_kernel_xiaomi_sm8350/drivers/usb
Dan Carpenter 0de32d3dd3 usb: gadget: udc: fix NULL dereference in remove()
[ Upstream commit 016da9c65fec9f0e78c4909ed9a0f2d567af6775 ]

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 10:18:41 +02:00
..
atm
c67x00
cdns3 usb: cdns3: Fix issue with using incorrect PCI device function 2023-04-05 11:16:40 +02:00
chipidea usb: chipidea: fix missing goto in ci_hdrc_probe 2023-05-17 11:35:49 +02:00
class USB: usbtmc: Fix direction for 0-length ioctl control messages 2023-05-30 12:44:06 +01:00
common
core usb: usbfs: Use consistent mmap functions 2023-06-14 10:59:58 +02:00
dwc2
dwc3 usb: dwc3: gadget: Reset num TRBs before giving back the request 2023-06-21 15:44:10 +02:00
early
gadget usb: gadget: udc: fix NULL dereference in remove() 2023-06-28 10:18:41 +02:00
host USB: UHCI: adjust zhaoxin UHCI controllers OverCurrent bit value 2023-05-30 12:44:06 +01:00
image
isp1760
misc USB: sisusbvga: Add endpoint checks 2023-05-30 12:44:10 +01:00
mon
mtu3 usb: mtu3: fix kernel panic at qmu transfer done irq handler 2023-05-17 11:35:49 +02:00
musb treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
phy
renesas_usbhs
roles
serial USB: serial: option: add Quectel EM061KGL series 2023-06-21 15:44:10 +02:00
storage treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
typec usb: typec: altmodes/displayport: fix pin_assignment_show 2023-05-30 12:44:06 +01:00
usbip
Kconfig
Makefile
usb-skeleton.c