From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f169.google.com ([209.85.214.169]:44179 "EHLO mail-pl1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbeILU2m (ORCPT ); Wed, 12 Sep 2018 16:28:42 -0400 Received: by mail-pl1-f169.google.com with SMTP id ba4-v6so1131036plb.11 for ; Wed, 12 Sep 2018 08:23:43 -0700 (PDT) Date: Wed, 12 Sep 2018 23:23:39 +0800 From: SZ Lin =?utf-8?B?KOael+S4iuaZuik=?= To: Greg Kroah-Hartman Cc: stable@vger.kernel.org Subject: request for 4.4-stable: 5817f977527e ("ethernet: ti: davinci_emac: add missing of_node_put after calling of_parse_phandle") Message-ID: <20180912152339.GA11394@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: --jRHKVT23PllUwdXP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 (林上智) --jRHKVT23PllUwdXP Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-ethernet-ti-davinci_emac-add-missing-of_node_put-aft.patch" Content-Transfer-Encoding: 8bit >>From 3ace61154f92cfbc516ee178378af48f2d6596b2 Mon Sep 17 00:00:00 2001 From: Peter Chen 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 Signed-off-by: David S. Miller Signed-off-by: SZ Lin (林上智) --- 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 --jRHKVT23PllUwdXP--