linux-stable/drivers/usb
Andrey Strachuk bfa0201468 usb: cdns3: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable()
[ Upstream commit c3ffc9c4ca ]

If 'ep' is NULL, result of ep_to_cdns3_ep(ep) is invalid pointer
and its dereference with priv_ep->cdns3_dev may cause panic.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 7733f6c32e ("usb: cdns3: Add Cadence USB3 DRD Driver")
Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Andrey Strachuk <strochuk@ispras.ru>
Link: https://lore.kernel.org/r/20220718160052.4188-1-strochuk@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:58 +02:00
..
atm
c67x00
cdns3 usb: cdns3: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable() 2022-08-17 14:23:58 +02:00
chipidea usb: chipidea: udc: check request status before setting device address 2022-06-29 09:03:27 +02:00
class usb: cdc-wdm: fix reading stuck on device close 2022-05-18 10:26:54 +02:00
common usb: ulpi: Call of_node_put correctly 2022-02-16 12:56:34 +01:00
core USB: HCD: Fix URB giveback issue in tasklet function 2022-08-17 14:22:58 +02:00
dwc2 usb: dwc2: Fix memory leak in dwc2_hcd_init 2022-06-22 14:22:03 +02:00
dwc3 usb: dwc3: qcom: fix missing optional irq warnings 2022-08-17 14:23:52 +02:00
early Revert "usb: early: convert to readl_poll_timeout_atomic()" 2021-12-22 09:32:45 +01:00
gadget usb: aspeed-vhub: Fix refcount leak bug in ast_vhub_init_desc() 2022-08-17 14:23:52 +02:00
host usb: host: xhci: use snprintf() in xhci_decode_trb() 2022-08-17 14:23:46 +02:00
image
isp1760 usb: isp1760: Fix out-of-bounds array access 2022-06-09 10:22:27 +02:00
misc usb: misc: fix improper handling of refcount in uss720_probe() 2022-05-09 09:14:28 +02:00
mon
mtu3 usb: mtu3: fix USB 3.0 dual-role-switch from device to host 2022-05-09 09:14:27 +02:00
musb usb: musb: Fix missing of_node_put() in omap2430_probe 2022-06-14 18:36:04 +02:00
phy extcon: Fix extcon_get_extcon_dev() error handling 2022-06-14 18:36:21 +02:00
renesas_usbhs
roles
serial USB: serial: fix tty-port initialized comments 2022-08-17 14:23:57 +02:00
storage USB: storage: karma: fix rio_karma_init return 2022-06-14 18:36:04 +02:00
typec usb: typec: ucsi: Acknowledge the GET_ERROR_STATUS command completion 2022-08-17 14:22:58 +02:00
usbip usb: usbip: add missing device lock on tweak configuration cmd 2022-06-14 18:36:04 +02:00
Kconfig
Makefile
usb-skeleton.c