linux/drivers/net
Gencen Gan 0211342dd6 net: amd: Fix link leak when verifying config failed
[ Upstream commit d325c34d9e ]

After failing to verify configuration, it returns directly without
releasing link, which may cause memory leak.

Paolo Abeni thinks that the whole code of this driver is quite
"suboptimal" and looks unmainatained since at least ~15y, so he
suggests that we could simply remove the whole driver, please
take it into consideration.

Simon Horman suggests that the fix label should be set to
"Linux-2.6.12-rc2" considering that the problem has existed
since the driver was introduced and the commit above doesn't
seem to exist in net/net-next.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Gan Gecen <gangecen@hust.edu.cn>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:26 +09:00
..
appletalk
arcnet
bonding bonding: Fix memory leak when changing bond type to Ethernet 2023-04-26 14:28:34 +02:00
caif
can
dsa net: dsa: qca8k: remove assignment of an_enabled in pcs_get_state() 2023-05-11 23:03:18 +09:00
ethernet net: amd: Fix link leak when verifying config failed 2023-05-11 23:03:26 +09:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim
pcs net: pcs: xpcs: remove double-read of link state when using AN 2023-05-11 23:03:18 +09:00
phy net: sfp: add quirk enabling 2500Base-x for HG MXPD-483II 2023-05-11 23:02:58 +09:00
plip
ppp
pse-pd
slip
team
usb
vmxnet3
vxlan
wan
wireguard wireguard: timers: cast enum limits members to int in prints 2023-05-11 23:02:58 +09:00
wireless wifi: iwlwifi: fw: fix memory leak in debugfs 2023-05-11 23:03:25 +09:00
wwan net: wwan: t7xx: do not compile with -Werror 2023-05-11 23:02:58 +09:00
xen-netback xen/netback: use same error messages for same errors 2023-04-26 14:28:37 +02:00
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c virtio_net: bugfix overflow inside xdp_linearize_page() 2023-04-26 14:28:33 +02:00
vrf.c
vsockmon.c
xen-netfront.c