Skip to content

Commit a266462

Browse files
joehattorigregkh
authored andcommitted
usb: dwc3-am62: Fix an OF node leak in phy_syscon_pll_refclk()
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 <[email protected]> Fixes: e8784c0 ("drivers: usb: dwc3: Add AM62 USB wrapper driver") Signed-off-by: Joe Hattori <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e3a9bd2 commit a266462

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
@@ -170,6 +170,7 @@ static int phy_syscon_pll_refclk(struct dwc3_am62 *am62)
170170
if (ret)
171171
return ret;
172172

173+
of_node_put(args.np);
173174
am62->offset = args.args[0];
174175

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

0 commit comments

Comments
 (0)