linux-loongson/drivers/net/ethernet/faraday
Heiner Kallweit e88fbc30dd net: ftgmac100: fix potential NULL pointer access in ftgmac100_phy_disconnect
After the call to phy_disconnect() netdev->phydev is reset to NULL.
So fixed_phy_unregister() would be called with a NULL pointer as argument.
Therefore cache the phy_device before this call.

Fixes: e24a6c8746 ("net: ftgmac100: Get link speed and duplex for NC-SI")
Cc: stable@vger.kernel.org
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
Link: https://patch.msgid.link/2b80a77a-06db-4dd7-85dc-3a8e0de55a1d@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-08-05 16:00:53 -07:00
..
ftgmac100.c net: ftgmac100: fix potential NULL pointer access in ftgmac100_phy_disconnect 2025-08-05 16:00:53 -07:00
ftgmac100.h net: ftgmac100: Enable TX interrupt to avoid TX timeout 2024-09-10 12:50:07 +02:00
ftmac100.c net: ethernet: Switch back to struct platform_driver::remove() 2024-10-04 16:39:56 -07:00
ftmac100.h net: ftmac100: fix endianness-related issues from 'sparse' 2022-09-06 10:24:05 +02:00
Kconfig net: ftgmac100: select FIXED_PHY 2025-06-18 14:11:16 -07:00
Makefile