TencentOS-kernel/drivers/net/ethernet
Sumera Priyadarsini 39522f3f88 net: gianfar: Add of_node_put() before goto statement
[ Upstream commit 989e4da042ca4a56bbaca9223d1a93639ad11e17 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-16 16:35:08 +08:00
..
3com Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
8390 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
adaptec Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
aeroflex Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
agere Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
alacritech Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
allwinner net: allwinner: Fix use correct return type for ndo_start_xmit() 2021-03-16 16:29:28 +08:00
alteon Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
altera Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
amazon net: ena: Make missed_tx stat incremental 2021-03-16 16:34:44 +08:00
amd amd-xgbe: Use __napi_schedule() in BH context 2021-03-16 16:26:20 +08:00
apm Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
apple net: bmac: Fix read of MAC address from ROM 2021-03-16 16:28:47 +08:00
aquantia net: ethernet: aquantia: Fix wrong return value 2021-03-16 16:33:45 +08:00
arc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
atheros net: ag71xx: add missed clk_disable_unprepare in error path of probe 2021-03-16 16:32:26 +08:00
aurora Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
broadcom bnxt_en: Fix completion ring sizing with TPA enabled. 2021-03-16 16:32:23 +08:00
brocade Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cadence net: macb: call pm_runtime_put_sync on failure path 2021-03-16 16:31:51 +08:00
calxeda Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cavium net: thunderx: initialize VF's mailbox mutex before first usage 2021-03-16 16:33:47 +08:00
chelsio cxgb4: add missing release on skb in uld_send() 2021-03-16 16:32:56 +08:00
cirrus Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cisco Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cortina net: gemini: Fix missing free_netdev() in error path of gemini_ethernet_port_probe() 2021-03-16 16:34:41 +08:00
davicom Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dec Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dlink Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
emulex Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ezchip Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
faraday Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
freescale net: gianfar: Add of_node_put() before goto statement 2021-03-16 16:35:08 +08:00
fujitsu Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
google Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
hisilicon net: hns3: fix aRFS FD rules leftover after add a user FD rule 2021-03-16 16:32:50 +08:00
hp Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
huawei Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
i825xx Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ibm ibmvnic: Fix IRQ mapping disposal in error path 2021-03-16 16:32:52 +08:00
intel scsi: fcoe: Fix I/O path allocation 2021-03-16 16:35:06 +08:00
marvell octeontx2-af: change (struct qmem)->entry_sz from u8 to u16 2021-03-16 16:34:11 +08:00
mediatek net: ethernet: mtk_eth_soc: fix MTU warnings 2021-03-16 16:33:09 +08:00
mellanox net/mlx5: Delete extra dump stack that gives nothing 2021-03-16 16:33:45 +08:00
micrel Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
microchip net: microchip: encx24j600: add missed kthread_stop 2021-03-16 16:28:28 +08:00
moxa net: moxa: Fix a potential double 'free_irq()' 2021-03-16 16:27:45 +08:00
mscc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
myricom Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
natsemi net/sonic: Fix a resource leak in an error handling path in 'jazz_sonic_probe()' 2021-03-16 16:27:45 +08:00
neterion net: vxge: fix wrong __VA_ARGS__ usage 2021-03-16 16:25:53 +08:00
netronome nfp: flower: fix used time of merge flow statistics 2021-03-16 16:28:50 +08:00
ni net: nixge: fix potential memory leak in nixge_probe() 2021-03-16 16:32:54 +08:00
nvidia Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
nxp net: lpc-enet: fix error return code in lpc_mii_init() 2021-03-16 16:29:27 +08:00
oki-semi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
packetengines Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pasemi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pensando ionic: update eid test for overflow 2021-03-16 16:33:25 +08:00
qlogic qed: Disable "MFW indication via attention" SPAM every 5 minutes 2021-03-16 16:32:55 +08:00
qualcomm net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init 2021-03-16 16:34:20 +08:00
rdc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
realtek r8169: re-establish support for RTL8401 chip version 2021-03-16 16:27:49 +08:00
renesas net: ethernet: ravb: exit if re-initialization fails in tx timeout 2021-03-16 16:32:56 +08:00
rocker rocker: fix incorrect error handling in dma_rings_init 2021-03-16 16:30:47 +08:00
samsung Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
seeq Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sfc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sgi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
silan Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sis Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
smsc net: smc91x: Fix possible memory leak in smc_drv_probe() 2021-03-16 16:32:25 +08:00
socionext net: ethernet: ave: Fix error returns in ave_init 2021-03-16 16:32:27 +08:00
stmicro net: stmmac: dwmac1000: provide multicast filter fallback 2021-03-16 16:34:05 +08:00
sun net: sun: fix missing release regions in cas_init_one(). 2021-03-16 16:28:26 +08:00
synopsys Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
tehuti Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ti drivers: net: davinci_mdio: fix potential NULL dereference in davinci_mdio_probe() 2021-03-16 16:29:27 +08:00
toshiba net: spider_net: Fix the size used in a 'dma_free_coherent()' call 2021-03-16 16:33:45 +08:00
tundra Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
via Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
wiznet Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
xilinx Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
xircom Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
xscale Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dnet.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dnet.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ec_bhf.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ethoc.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
fealnx.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
jme.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
jme.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
korina.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
lantiq_etop.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
lantiq_xrx200.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00