kernel_samsung_a53x/drivers/usb/host
Vitalii Mordan 0c1a8f0d1d usb: ehci-hcd: fix call balance of clocks handling routines
commit 97264eaaba0122a5b7e8ddd7bf4ff3ac57c2b170 upstream.

If the clocks priv->iclk and priv->fclk were not enabled in ehci_hcd_sh_probe,
they should not be disabled in any path.

Conversely, if they was enabled in ehci_hcd_sh_probe, they must be disabled
in all error paths to ensure proper cleanup.

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

Fixes: 63c845522263 ("usb: ehci-hcd: Add support for SuperH EHCI.")
Cc: stable@vger.kernel.org # ff30bd6a6618: sh: clk: Fix clk_enable() to return 0 on NULL clk
Signed-off-by: Vitalii Mordan <mordan@ispras.ru>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20241121114700.2100520-1-mordan@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-02 17:00:49 +01:00
..
bcma-hcd.c
ehci-atmel.c
ehci-brcm.c
ehci-dbg.c
ehci-exynos.c
ehci-fsl.c
ehci-fsl.h
ehci-grlib.c
ehci-hcd.c
ehci-hub.c
ehci-mem.c
ehci-mv.c
ehci-mxc.c
ehci-npcm7xx.c
ehci-omap.c
ehci-orion.c
ehci-pci.c
ehci-platform.c
ehci-pmcmsp.c
ehci-ppc-of.c
ehci-ps3.c
ehci-q.c
ehci-sched.c
ehci-sh.c usb: ehci-hcd: fix call balance of clocks handling routines 2025-01-02 17:00:49 +01:00
ehci-spear.c usb: ehci-spear: fix call balance of sehci clk handling routines 2024-12-17 13:24:17 +01:00
ehci-st.c
ehci-sysfs.c
ehci-tegra.c
ehci-timer.c
ehci-xilinx-of.c
ehci.h
fhci-dbg.c
fhci-hcd.c
fhci-hub.c
fhci-mem.c
fhci-q.c
fhci-sched.c
fhci-tds.c
fhci.h
fotg210-hcd.c
fotg210.h
fsl-mph-dr-of.c
imx21-dbg.c
imx21-hcd.c
imx21-hcd.h
isp116x-hcd.c
isp116x.h
isp1362-hcd.c
isp1362.h
Kconfig
Makefile
max3421-hcd.c usb: host: max3421-hcd: Correctly abort a USB request. 2025-01-02 17:00:49 +01:00
ohci-at91.c
ohci-da8xx.c
ohci-dbg.c
ohci-exynos.c
ohci-hcd.c usb: ohci: Prevent missed ohci interrupts 2024-11-19 11:32:48 +01:00
ohci-hub.c
ohci-mem.c
ohci-nxp.c
ohci-omap.c
ohci-pci.c
ohci-platform.c
ohci-ppc-of.c
ohci-ps3.c
ohci-pxa27x.c
ohci-q.c
ohci-s3c2410.c
ohci-sa1111.c
ohci-sm501.c
ohci-spear.c
ohci-st.c
ohci-tmio.c
ohci.h
oxu210hp-hcd.c
pci-quirks.c
pci-quirks.h
r8a66597-hcd.c
r8a66597.h
sl811-hcd.c usb: sl811-hcd: only defined function checkdone if QUIRK2 is defined 2024-11-19 09:23:15 +01:00
sl811.h
sl811_cs.c
ssb-hcd.c
u132-hcd.c
uhci-debug.c
uhci-grlib.c
uhci-hcd.c
uhci-hcd.h
uhci-hub.c
uhci-pci.c
uhci-platform.c
uhci-q.c
xhci-dbg.c
xhci-dbgcap.c xhci: dbc: Fix STALL transfer event handling 2024-12-17 13:24:34 +01:00
xhci-dbgcap.h xhci: dbc: Fix STALL transfer event handling 2024-12-17 13:24:34 +01:00
xhci-dbgtty.c
xhci-debugfs.c
xhci-debugfs.h
xhci-ext-caps.c
xhci-ext-caps.h
xhci-exynos.c
xhci-exynos.h
xhci-histb.c
xhci-hub.c
xhci-mem.c
xhci-mtk-sch.c
xhci-mtk.c
xhci-mtk.h
xhci-mvebu.c
xhci-mvebu.h
xhci-pci-renesas.c Revert "usb: renesas-xhci: Remove renesas_xhci_pci_exit()" 2024-11-24 00:23:14 +01:00
xhci-pci.c Revert "usb: renesas-xhci: Remove renesas_xhci_pci_exit()" 2024-11-24 00:23:14 +01:00
xhci-pci.h Revert "usb: renesas-xhci: Remove renesas_xhci_pci_exit()" 2024-11-24 00:23:14 +01:00
xhci-plat.c usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK 2024-11-18 12:13:26 +01:00
xhci-plat.h usb: xhci-plat: Don't include xhci.h 2024-11-19 11:32:48 +01:00
xhci-rcar.c
xhci-rcar.h
xhci-ring.c xhci: Set correct transferred length for cancelled bulk transfers 2024-11-19 14:19:02 +01:00
xhci-tegra.c
xhci-trace.c
xhci-trace.h
xhci.c xhci: Fix Panther point NULL pointer deref at full-speed re-enumeration 2024-11-23 23:20:42 +01:00
xhci.h Revert "xhci: Fix incorrect stream context type macro" 2024-11-24 00:22:51 +01:00