mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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 <peter.chen@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
453cafbce5
commit
d4e4da00b6
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue