Skip to content

Commit 2228733

Browse files
joehattorigregkh
authored andcommitted
usb: dwc3-am62: Fix an OF node leak in phy_syscon_pll_refclk()
commit a266462 upstream. phy_syscon_pll_refclk() leaks an OF node obtained by of_parse_phandle_with_fixed_args(), thus add an of_node_put() call. Cc: stable <stable@kernel.org> Fixes: e8784c0 ("drivers: usb: dwc3: Add AM62 USB wrapper driver") Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/20250109001638.70033-1-joe@pf.is.s.u-tokyo.ac.jp Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 455be83 commit 2228733

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/dwc3/dwc3-am62.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ static int phy_syscon_pll_refclk(struct dwc3_am62 *am62)
166166
if (ret)
167167
return ret;
168168

169+
of_node_put(args.np);
169170
am62->offset = args.args[0];
170171

171172
/* Core voltage. PHY_CORE_VOLTAGE bit Recommended to be 0 always */

0 commit comments

Comments
 (0)