linux/drivers/usb
Krzysztof Kozlowski ddfcfeba89 usb: dwc3: st: fix probed platform device ref count on probe error path
The probe function never performs any paltform device allocation, thus
error path "undo_platform_dev_alloc" is entirely bogus.  It drops the
reference count from the platform device being probed.  If error path is
triggered, this will lead to unbalanced device reference counts and
premature release of device resources, thus possible use-after-free when
releasing remaining devm-managed resources.

Fixes: f83fca0707 ("usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC")
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20240814093957.37940-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-22 17:34:26 +08:00
..
atm usb: atm: cxacru: fix endpoint checking in cxacru_bind() 2024-06-20 19:34:51 +02:00
c67x00 USB: c67x00: Remove unused declaration c67x00_hcd_msg_received() 2023-10-02 16:42:33 +02:00
cdns3 usb: cdnsp: fix incorrect index in cdnsp_get_hw_deq function 2024-08-22 17:15:35 +08:00
chipidea usb: chipidea: ci_hdrc_tegra: Switch to RUNTIME_PM_OPS() 2024-06-27 16:07:01 +02:00
class cdc-acm: Add DISABLE_ECHO quirk for GE HealthCare UI Controller 2024-08-22 17:28:16 +08:00
common Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
core usb: core: sysfs: Unmerge @usb3_hardware_lpm_attr_group in remove_power_attributes() 2024-08-22 17:29:50 +08:00
dwc2 usb: dwc2: add support for other Lantiq SoCs 2024-07-10 13:56:32 +02:00
dwc3 usb: dwc3: st: fix probed platform device ref count on probe error path 2024-08-22 17:34:26 +08:00
early
fotg210 usb: fotg210: Add missing kernel doc description 2024-05-11 08:42:03 +01:00
gadget usb: gadget: uvc: queue pump work in uvcg_video_enable() 2024-08-22 17:28:39 +08:00
host xhci: Fix Panther point NULL pointer deref at full-speed re-enumeration 2024-08-15 16:29:46 +02:00
image scsi: core: Add a dma_alignment field to the host and host template 2024-04-11 21:37:48 -04:00
isp1760 mm, slab: remove last vestiges of SLAB_MEM_SPREAD 2024-03-12 20:32:19 -07:00
misc usb: misc: ljca: Add Lunar Lake ljca GPIO HID to ljca_gpio_hids[] 2024-08-13 10:27:07 +02:00
mon usb: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:52 +02:00
mtu3 tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
musb Merge 6.10-rc6 into usb-next 2024-07-01 13:59:29 +02:00
phy usb: phy: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:32 +02:00
renesas_usbhs usb: renesas_usbhs: Remove renesas_usbhs_get_info() wrapper 2024-04-18 16:47:49 +02:00
roles Merge v6.8-rc6 into usb-next 2024-02-26 06:53:50 +01:00
serial USB-serial fix for 6.11-rc2 2024-08-07 12:36:50 +02:00
storage USB: uas: Implement the new shutdown callback 2024-07-10 13:58:24 +02:00
typec usb: typec: fsa4480: Relax CHIP_ID check 2024-08-22 17:29:40 +08:00
usbip usb: vhci-hcd: Do not drop references before new references are gained 2024-07-31 10:39:04 +02:00
Kconfig
Makefile USB: xen-hcd: Traverse host/ when CONFIG_USB_XEN_HCD is selected 2024-06-04 15:33:38 +02:00
usb-skeleton.c