linux/drivers/net/ethernet/mediatek
Nishka Dasgupta cf36dd2f77 net: ethernet: mediatek: mtk_eth_soc: Add of_node_put() before goto
Each iteration of for_each_child_of_node puts the previous node, but in
the case of a goto from the middle of the loop, there is no put, thus
causing a memory leak. Hence add an of_node_put before the goto.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-16 12:38:37 -07:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile net: ethernet: mediatek: fix mtk_eth_soc build errors & warnings 2019-06-05 11:35:16 -07:00
mtk_eth_path.c net: ethernet: mediatek: Fix overlapping capability bits. 2019-07-04 12:37:10 -07:00
mtk_eth_soc.c net: ethernet: mediatek: mtk_eth_soc: Add of_node_put() before goto 2019-07-16 12:38:37 -07:00
mtk_eth_soc.h net: ethernet: mediatek: Fix misuses of GENMASK macro 2019-07-11 14:30:07 -07:00
mtk_sgmii.c net: ethernet: mediatek: Fix misuses of GENMASK macro 2019-07-11 14:30:07 -07:00