linux/drivers/phy/rockchip
Wentao Liang e07dea3de5 phy: rockchip: inno-usb2: Fix a double free bug in rockchip_usb2phy_probe()
The for_each_available_child_of_node() calls of_node_put() to
release child_np in each success loop. After breaking from the
loop with the child_np has been released, the code will jump to
the put_child label and will call the of_node_put() again if the
devm_request_threaded_irq() fails. These cause a double free bug.

Fix by returning directly to avoid the duplicate of_node_put().

Fixes: ed2b5a8e6b ("phy: phy-rockchip-inno-usb2: support muxed interrupts")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260109154626.2452034-1-vulab@iscas.ac.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2026-01-14 19:07:44 +05:30
..
Kconfig phy-for-6.15 2025-04-01 12:47:11 -07:00
Makefile phy: rockchip: Add Samsung MIPI D-/C-PHY driver 2025-03-16 22:10:46 +05:30
phy-rockchip-dp.c
phy-rockchip-dphy-rx0.c
phy-rockchip-emmc.c phy: rockchip-emmc: switch to FIELD_PREP_WM16 macro 2025-09-02 20:06:46 -04:00
phy-rockchip-inno-csidphy.c phy: rockchip: phy-rockchip-inno-csidphy: add support for rk3588 variant 2025-09-11 10:02:13 +05:30
phy-rockchip-inno-dsidphy.c phy: rockchip: inno-dsidphy: Add support for rk3506 2025-11-20 22:00:02 +05:30
phy-rockchip-inno-hdmi.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-rockchip-inno-usb2.c phy: rockchip: inno-usb2: Fix a double free bug in rockchip_usb2phy_probe() 2026-01-14 19:07:44 +05:30
phy-rockchip-naneng-combphy.c phy: rockchip: naneng-combphy: Fix PCIe L1ss support RK3562 2025-11-20 22:15:28 +05:30
phy-rockchip-pcie.c phy: rockchip-pcie: switch to FIELD_PREP_WM16 macro 2025-09-22 15:52:44 -04:00
phy-rockchip-samsung-dcphy.c phy: rockchip-samsung-dcphy: switch to FIELD_PREP_WM16 macro 2025-09-02 20:06:47 -04:00
phy-rockchip-samsung-hdptx.c phy: rockchip: samsung-hdptx: Prevent Inter-Pair Skew from exceeding the limits 2025-11-20 22:30:17 +05:30
phy-rockchip-snps-pcie3.c
phy-rockchip-typec.c phy: rockchip: phy-rockchip-typec: Fix Copyright description 2024-12-25 01:17:33 +05:30
phy-rockchip-usb.c phy: rockchip-usb: switch to FIELD_PREP_WM16 macro 2025-09-02 20:06:47 -04:00
phy-rockchip-usbdp.c phy: rockchip: usbdp: Remove redundant ternary operators 2025-09-01 18:13:54 +05:30