linux-stable/drivers/net
Sean Anderson bcc43be280 net: fman: Unregister ethernet device on removal
[ Upstream commit b7cbc6740b ]

When the mac device gets removed, it leaves behind the ethernet device.
This will result in a segfault next time the ethernet device accesses
mac_dev. Remove the ethernet device when we get removed to prevent
this. This is not completely reversible, since some resources aren't
cleaned up properly, but that can be addressed later.

Fixes: 3933961682 ("fsl/fman: Add FMan MAC driver")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/20221103182831.2248833-1-sean.anderson@seco.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-16 10:03:54 +01:00
..
appletalk
arcnet
bonding bonding: fix NULL deref in bond_rr_gen_slave_id 2022-09-22 06:39:40 -07:00
caif
can can: mcp251x: mcp251x_can_probe(): add missing unregister_candev() in error path 2022-11-04 00:00:31 +09:00
dsa net: dsa: Fix possible memory leaks in dsa_loop_init() 2022-11-10 18:17:16 +01:00
ethernet net: fman: Unregister ethernet device on removal 2022-11-16 10:03:54 +01:00
fddi skfp/h: fix repeated words in comments 2022-08-12 11:20:29 +01:00
fjes
hamradio
hippi net: hippi: Add missing pci_disable_device() in rr_init_one() 2022-09-26 13:22:39 -07:00
hyperv hv_netvsc: Fix race between VF offering and VF association message from host 2022-10-21 12:37:34 +02:00
ieee802154 ieee802154: cc2520: add rc code in cc2520_tx() 2022-08-29 11:10:22 +02:00
ipa net: ipa: properly limit modem routing table use 2022-09-20 08:11:13 -07:00
ipvlan ipvlan: Fix out-of-bound bugs caused by unset skb->mac_header 2022-09-09 12:46:06 +01:00
mctp
mdio of: mdio: Add of_node_put() when breaking out of for_each_xx 2022-09-20 07:32:09 -07:00
netdevsim netdevsim: remove dir in nsim_dev_debugfs_init() when creating ports dir failed 2022-11-04 00:00:33 +09:00
pcs
phy net: mdio: fix undefined behavior in bit shift for __mdiobus_register 2022-11-10 18:17:21 +01:00
plip
ppp
slip
team net: team: Unsync device addresses on ndo_stop 2022-09-16 14:34:01 +01:00
usb r8152: Rate limit overflow messages 2022-10-21 12:39:12 +02:00
vmxnet3
vxlan
wan
wireguard wireguard: netlink: avoid variable-sized memcpy on sockaddr 2022-09-20 11:26:14 -07:00
wireless wifi: brcmfmac: Fix potential buffer overflow in brcmf_fweh_event_worker() 2022-11-10 18:17:40 +01:00
wwan wwan_hwsim: fix possible memory leak in wwan_hwsim_dev_new() 2022-10-29 10:08:35 +02:00
xen-netback xen-netback: only remove 'hotplug-status' when the vif is actually destroyed 2022-09-03 09:53:02 +01:00
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c macsec: clear encryption keys from the stack after setting up offload 2022-11-16 10:03:53 +01:00
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
thunderbolt.c net: thunderbolt: Enable DMA paths only after rings are enabled 2022-10-21 12:37:38 +02:00
tun.c net: tun: Fix memory leaks of napi_get_frags 2022-11-16 10:03:53 +01:00
veth.c
virtio_net.c Including fixes from netfilter. 2022-08-18 19:37:15 -07:00
vrf.c
vsockmon.c
xen-netfront.c