1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/freescale
Sumera Priyadarsini 989e4da042 net: gianfar: Add of_node_put() before goto statement
Every iteration of for_each_available_child_of_node() decrements
reference count of the previous node, however when control
is transferred from the middle of the loop, as in the case of
a return or break or goto, there is no decrement thus ultimately
resulting in a memory leak.

Fix a potential memory leak in gianfar.c by inserting of_node_put()
before the goto statement.

Issue found with Coccinelle.

Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-18 13:12:12 -07:00
..
dpaa dpaa_eth: Fix one possible memleak in dpaa_eth_probe 2020-07-20 17:54:08 -07:00
dpaa2 dpaa2-eth: Fix passing zero to 'PTR_ERR' warning 2020-08-04 16:10:24 -07:00
enetc enetc: use napi_schedule to be compatible with PREEMPT_RT 2020-08-03 18:21:30 -07:00
fman fsl/fman: fix eth hash table allocation 2020-08-03 16:20:15 -07:00
fs_enet net: fs_enet: remove redundant null check 2020-07-20 17:42:17 -07:00
fec.h net: fec: fix hardware time stamping by external devices 2020-07-16 11:20:38 -07:00
fec_main.c net: fec: correct the error path for regulator disable in probe 2020-08-14 16:48:29 -07:00
fec_mpc52xx.c net: convert suitable network drivers to use phy_do_ioctl 2020-01-21 10:50:41 +01:00
fec_mpc52xx.h drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
fec_mpc52xx_phy.c mdio: Move allocation of interrupts into core 2016-01-07 14:31:26 -05:00
fec_ptp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-07-25 17:49:04 -07:00
fsl_pq_mdio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
gianfar.c net: gianfar: Add of_node_put() before goto statement 2020-08-18 13:12:12 -07:00
gianfar.h net/freescale: Clean drivers from static versions 2020-03-03 17:54:55 -08:00
gianfar_ethtool.c net: gianfar: reject unsupported coalescing params 2020-03-12 11:32:35 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile net: dsa: felix: fix link error 2020-01-08 16:05:54 -08:00
ucc_geth.c net: ethernet: freescale: remove unneeded include for ucc_geth 2020-06-04 15:55:58 -07:00
ucc_geth.h net/freescale: Clean drivers from static versions 2020-03-03 17:54:55 -08:00
ucc_geth_ethtool.c net/freescale: Don't set zero if FW not-available in ucc_geth 2020-03-03 17:54:55 -08:00
xgmac_mdio.c net/fsl: enable extended scanning in xgmac_mdio 2020-06-23 20:35:15 -07:00