linux-stable/drivers/net/ethernet/freescale
Sean Anderson b7cbc6740b net: fman: Unregister ethernet device on removal
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>
2022-11-04 19:33:38 -07:00
..
dpaa net: fman: Use physical address for userspace interfaces 2022-10-24 10:45:14 +01:00
dpaa2 net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
enetc net: enetc: survive memory pressure without crashing 2022-10-27 11:32:25 -07:00
fman net: fman: Unregister ethernet device on removal 2022-11-04 19:33:38 -07:00
fs_enet net: ethernet: remove fs_mii_disconnect and fs_mii_connect declarations 2022-09-19 14:08:14 -07:00
Kconfig net: fec: using page pool to manage RX buffers 2022-10-03 12:43:59 +01:00
Makefile net: enetc: fix link error again 2021-04-22 13:23:07 -07:00
fec.h net: fec: using page pool to manage RX buffers 2022-10-03 12:43:59 +01:00
fec_main.c net: fec: fix improper use of NETDEV_TX_BUSY 2022-10-31 09:22:32 +00:00
fec_mpc52xx.c powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode 2022-06-22 12:51:49 +10:00
fec_mpc52xx.h
fec_mpc52xx_phy.c powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode 2022-06-22 12:51:49 +10:00
fec_ptp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-22 13:02:10 -07:00
fsl_pq_mdio.c
gianfar.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
gianfar.h eth: gfar: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:42 +01:00
gianfar_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
ucc_geth.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ucc_geth.h ethernet: ucc_geth: simplify rx/tx allocations 2021-01-21 12:19:56 -08:00
ucc_geth_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
xgmac_mdio.c net: freescale: xgmac: Do not dereference fwnode in struct device 2022-08-22 14:53:13 +01:00