Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <stable@kernel.org>
Fixes: e8784c0aec03 ("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>

authored by

Joe Hattori and committed by
Greg Kroah-Hartman
a266462b e3a9bd24

+1
+1
drivers/usb/dwc3/dwc3-am62.c
··· 170 170 if (ret) 171 171 return ret; 172 172 173 + of_node_put(args.np); 173 174 am62->offset = args.args[0]; 174 175 175 176 /* Core voltage. PHY_CORE_VOLTAGE bit Recommended to be 0 always */