From: Peter Chen Date: Mon, 1 Aug 2016 07:02:40 +0000 (+0800) Subject: ethernet: renesas: sh_eth: add missing of_node_put after calling of_parse_phandle X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8da703dc8d92be72e3c1e3f26dd540fdaff69f4c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Sergei Shtylyov Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 7bd910ce8b34..799d58d86e6d 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -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 {