From: Peter Chen Date: Mon, 1 Aug 2016 07:02:36 +0000 (+0800) Subject: ethernet: marvell: mvneta: add missing of_node_put after calling of_parse_phandle X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d4e4da00b68079dc13b15565a52d81f88bb61b2a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ethernet: marvell: mvneta: 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index f92018b13d28..d41c28d00b57 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -4118,6 +4118,7 @@ static int mvneta_probe(struct platform_device *pdev) pp->bm_priv = NULL; } } + of_node_put(bm_node); err = mvneta_init(&pdev->dev, pp); if (err < 0)