diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-06-11 15:03:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-15 02:01:05 +0200 |
commit | bdf767cae3dddcb50a9ca09d01bb79df3e384f7b (patch) | |
tree | 87bba32cb96acaedf3042a1c7940f0d1d7653c0b /drivers/net | |
parent | sctp: define sctp_packet_gso_append to build GSO frames (diff) | |
download | linux-bdf767cae3dddcb50a9ca09d01bb79df3e384f7b.tar.xz linux-bdf767cae3dddcb50a9ca09d01bb79df3e384f7b.zip |
net: qcom/emac: Add missing of_node_put()
Add missing of_node_put() call for device node returned by
of_parse_phandle().
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/qualcomm/emac/emac-sgmii.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c b/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c index e78e5db39458..c694e3428dfc 100644 --- a/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c +++ b/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c @@ -384,6 +384,7 @@ int emac_sgmii_config(struct platform_device *pdev, struct emac_adapter *adpt) } sgmii_pdev = of_find_device_by_node(np); + of_node_put(np); if (!sgmii_pdev) { dev_err(&pdev->dev, "invalid internal-phy property\n"); return -ENODEV; |