mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
ethernet: renesas: sh_eth: add missing of_node_put after calling of_parse_phandle
of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Signed-off-by: Peter Chen <peter.chen@nxp.com> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c9b1eb8919
commit
8da703dc8d
@ -1780,6 +1780,7 @@ static int sh_eth_phy_init(struct net_device *ndev)
|
||||
sh_eth_adjust_link, 0,
|
||||
mdp->phy_interface);
|
||||
|
||||
of_node_put(pn);
|
||||
if (!phydev)
|
||||
phydev = ERR_PTR(-ENOENT);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user