linux/drivers/phy/ti
Felix Gu e8f6a8d7b4 phy: ti: j721e-wiz: Fix device node reference leak in wiz_get_lane_phy_types()
[ Upstream commit 584b457f41 ]

The serdes device_node is obtained using of_get_child_by_name(),
which increments the reference count. However, it is never put,
leading to a reference leak.

Add the missing of_node_put() calls to ensure the reference count is
properly balanced.

Fixes: 7ae14cf581 ("phy: ti: j721e-wiz: Implement DisplayPort mode to the wiz driver")
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/20260212-wiz-v2-1-6e8bd4cc7a4a@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-04-18 10:33:28 +02:00
..
Kconfig phy: ti: fix Kconfig warning and operator precedence 2023-02-01 08:27:07 +01:00
Makefile phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC 2020-01-14 10:50:19 +05:30
phy-am654-serdes.c phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe 2022-05-09 09:14:33 +02:00
phy-da8xx-usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
phy-dm816x-usb.c phy: ti: dm816x: Fix the error handling path in 'dm816x_usb_phy_probe() 2021-06-21 12:04:18 +05:30
phy-gmii-sel.c phy: ti: gmii-sel: check of_get_address() for failure 2021-11-18 19:16:55 +01:00
phy-j721e-wiz.c phy: ti: j721e-wiz: Fix device node reference leak in wiz_get_lane_phy_types() 2026-04-18 10:33:28 +02:00
phy-omap-control.c phy: Use device_get_match_data() 2025-10-02 13:39:08 +02:00
phy-omap-usb2.c phy: ti: omap-usb2: fix device leak at unbind 2025-10-02 13:39:09 +02:00
phy-ti-pipe3.c phy: Use device_get_match_data() 2025-10-02 13:39:08 +02:00
phy-tusb1210.c phy: tusb1210: use bitmasks to set VENDOR_SPECIFIC2 2021-03-12 15:33:05 +05:30
phy-twl4030-usb.c phy: phy-twl4030-usb: Disable PHY for suspend 2021-08-06 17:32:51 +05:30