linux/drivers/net
Sumera Priyadarsini 9c0305c0cf net: gianfar: Add of_node_put() before goto statement
[ Upstream commit 989e4da042 ]

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>
2020-09-03 11:27:00 +02:00
..
appletalk
arcnet
bonding bonding: fix active-backup failover for current ARP slave 2020-08-26 10:41:05 +02:00
caif
can
dsa net: dsa: b53: check for timeout 2020-08-26 10:41:06 +02:00
ethernet net: gianfar: Add of_node_put() before goto statement 2020-09-03 11:27:00 +02:00
fddi
fjes
hamradio
hippi hippi: Fix a size used in a 'pci_free_consistent()' in an error handling path 2020-07-29 10:18:31 +02:00
hyperv hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit() 2020-08-26 10:41:06 +02:00
ieee802154 ieee802154: fix one possible memleak in adf7242_probe 2020-07-29 10:18:32 +02:00
ipvlan ipvlan: fix device features 2020-09-03 11:26:41 +02:00
netdevsim netdevsim: fix unbalaced locking in nsim_create() 2020-07-29 10:18:33 +02:00
phy net: phy: fix memory leak in device-create error path 2020-08-19 08:16:22 +02:00
plip
ppp
slip
team
usb net: lan78xx: replace bogus endpoint lookup 2020-08-11 15:33:40 +02:00
vmxnet3 vmxnet3: use correct tcp hdr length when packet is encapsulated 2020-08-19 08:16:23 +02:00
wan net: wan: wanxl: use $(M68KCC) instead of $(M68KAS) for rebuilding firmware 2020-08-26 10:40:46 +02:00
wimax
wireless Revert "ath10k: fix DMA related firmware crashes on multiple devices" 2020-09-03 11:26:49 +02:00
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
dummy.c
eql.c
geneve.c geneve: fix an uninitialized value in geneve_changelink() 2020-07-29 10:18:35 +02:00
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c macvlan: validate setting of multiple remote source MAC addresses 2020-09-03 11:27:00 +02:00
macvtap.c
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
vxlan.c Revert "vxlan: fix tos value before xmit" 2020-08-11 15:33:41 +02:00
xen-netfront.c xen-netfront: fix potential deadlock in xennet_remove() 2020-08-05 09:59:51 +02:00