Re: [PATCH] phy: tegra: xusb: fix OF node leak on lane probe failure

From: Manivannan Sadhasivam

Date: Fri Nov 27 2026 - 06:52:18 EST


On 2026-11-09 15:47 +0800, Zhao Feng wrote:
> tegra_xusb_pad_register() obtains a reference to each lane node via
> tegra_xusb_pad_find_phy_node(). On success the reference is
> transferred into the lane (lane->np), and the disabled-lane and
> phy_create() failure paths drop it, but the pad->ops->probe()
> failure path (e.g. tegra_xusb_lane_parse_dt() rejecting the
> "nvidia,function" property) jumps to remove without dropping it,
> leaking one node reference per failed lane.
>
> Drop the reference on that path, mirroring the phy_create() failure
> path right above.
>
> Fixes: 53d2a715c240 ("phy: Add Tegra XUSB pad controller support")
> Cc: stable@xxxxxxxxxxxxxxx

Stable tag should be dropped. This is not a critical fix to backport.

> Signed-off-by: Zhao Feng <zhaofeng2@xxxxxxxxxxxxxxxxxxxx>

With the tag dropped,

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>

Please respin.

- Mani