]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: add of_node_put to error paths
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 8 Nov 2017 08:56:35 +0000 (09:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 06:27:44 +0000 (15:27 +0900)
commitba7fc291df6488d91a3723032a30da36492c77e4
treec1a111dfd98801469ff4bc7ce75b1bc96fa178b3
parente60072c06887e42f96db0845a3390019234b216a
net: macb: add of_node_put to error paths

We add the call of_node_put(bp->phy_node) to all associated error
paths for memory clean up.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c