linux/drivers/phy/rockchip
Wentao Liang 027d42b97e phy: rockchip: inno-usb2: Fix a double free bug in rockchip_usb2phy_probe()
[ Upstream commit e07dea3de5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-23 11:18:51 +01:00
..
Kconfig phy: rockchip: fix Kconfig dependency more 2025-03-07 18:25:36 +01:00
Makefile phy: rockchip: add usbdp combo phy driver 2024-04-12 16:59:26 +05:30
phy-rockchip-dp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
phy-rockchip-dphy-rx0.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-rockchip-emmc.c phy: rockchip: emmc, add vendor prefix to dts properties 2021-01-13 17:28:24 +05:30
phy-rockchip-inno-csidphy.c phy: rockchip: phy-rockchip-inno-csidphy: allow writes to grf register 0 2025-11-13 15:34:22 -05:00
phy-rockchip-inno-dsidphy.c phy: rockchip: inno-dsidphy: Add rv1126 support 2023-08-22 19:28:11 +05:30
phy-rockchip-inno-hdmi.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-rockchip-inno-usb2.c phy: rockchip: inno-usb2: Fix a double free bug in rockchip_usb2phy_probe() 2026-01-23 11:18:51 +01:00
phy-rockchip-naneng-combphy.c phy: rockchip: naneng-combphy: Enable U3 OTG port for RK3568 2025-10-15 12:00:04 +02:00
phy-rockchip-pcie.c phy: rockchip-pcie: Properly disable TEST_WRITE strobe signal 2025-08-20 18:30:41 +02:00
phy-rockchip-samsung-hdptx.c phy: rockchip: samsung-hdptx: Prevent Inter-Pair Skew from exceeding the limits 2025-12-18 13:55:03 +01:00
phy-rockchip-snps-pcie3.c phy: rockchip-snps-pcie3: add support for rockchip,rx-common-refclk-mode 2024-04-13 11:36:15 +05:30
phy-rockchip-typec.c phy: rockchip: phy-rockchip-typec: Use devm_platform_get_and_ioremap_resource() 2023-07-12 22:27:40 +05:30
phy-rockchip-usb.c phy: Use device_get_match_data() 2023-10-13 15:45:40 +05:30
phy-rockchip-usbdp.c phy: rockchip: usbdp: Only verify link rates/lanes/voltage when the corresponding set flags are set 2025-05-29 11:02:21 +02:00