linux-stable/drivers/net/ethernet/freescale/fman
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
..
Kconfig ethernet: select CONFIG_CRC32 as needed 2020-12-04 14:42:21 -08:00
Makefile
fman.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_dtsec.c net: dpaa: Adjust queue depth on rate change 2022-09-05 14:27:39 +01:00
fman_dtsec.h net: fman: Pass params directly to mac init 2022-09-05 14:27:39 +01:00
fman_keygen.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_keygen.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_mac.h net: fman: Specify type of mac_dev for exception_cb 2022-09-05 14:27:39 +01:00
fman_memac.c net: dpaa: Adjust queue depth on rate change 2022-09-05 14:27:39 +01:00
fman_memac.h net: fman: Pass params directly to mac init 2022-09-05 14:27:39 +01:00
fman_muram.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_muram.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_port.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_port.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_sp.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_sp.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_tgec.c net: dpaa: Adjust queue depth on rate change 2022-09-05 14:27:39 +01:00
fman_tgec.h net: fman: Pass params directly to mac init 2022-09-05 14:27:39 +01:00
mac.c net: fman: Unregister ethernet device on removal 2022-11-04 19:33:38 -07:00
mac.h net: fman: Use physical address for userspace interfaces 2022-10-24 10:45:14 +01:00