* request for 4.4-stable: 5817f977527e ("ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandle")
@ 2018-09-12 15:23 SZ Lin (林上智)
2018-09-17 11:46 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: SZ Lin (林上智) @ 2018-09-12 15:23 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: stable
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
Hi Greg,
This patch is not marked for 4.4-stable, but it's already in 4.9 and 4.14 stable.
Please apply to 4.4-stable.
This patch adds necessary function when removing driver.
--
SZ Lin (林上智)
[-- Attachment #2: 0001-ethernet-ti-davinci_emac-add-missing-of_node_put-aft.patch --]
[-- Type: text/x-diff, Size: 1096 bytes --]
>From 3ace61154f92cfbc516ee178378af48f2d6596b2 Mon Sep 17 00:00:00 2001
From: Peter Chen <peter.chen@nxp.com>
Date: Mon, 1 Aug 2016 15:02:43 +0800
Subject: [PATCH] ethernet: ti: davinci_emac: add missing of_node_put after
calling of_parse_phandle
commit 5817f977527e5cdbea9ca56d2b95824f59c8747d upstream
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: SZ Lin (林上智) <sz.lin@moxa.com>
---
drivers/net/ethernet/ti/davinci_emac.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c
index 6be315303d61..8ecb24186b7f 100644
--- a/drivers/net/ethernet/ti/davinci_emac.c
+++ b/drivers/net/ethernet/ti/davinci_emac.c
@@ -2108,6 +2108,7 @@ static int davinci_emac_remove(struct platform_device *pdev)
cpdma_ctlr_destroy(priv->dma);
unregister_netdev(ndev);
+ of_node_put(priv->phy_node);
free_netdev(ndev);
return 0;
--
2.19.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: request for 4.4-stable: 5817f977527e ("ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandle")
2018-09-12 15:23 request for 4.4-stable: 5817f977527e ("ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandle") SZ Lin (林上智)
@ 2018-09-17 11:46 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2018-09-17 11:46 UTC (permalink / raw)
To: SZ Lin (林上智); +Cc: stable
On Wed, Sep 12, 2018 at 11:23:39PM +0800, SZ Lin (林上智) wrote:
> Hi Greg,
>
> This patch is not marked for 4.4-stable, but it's already in 4.9 and 4.14 stable.
>
> Please apply to 4.4-stable.
>
> This patch adds necessary function when removing driver.
Now applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-17 17:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-12 15:23 request for 4.4-stable: 5817f977527e ("ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandle") SZ Lin (林上智)
2018-09-17 11:46 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).