[PATCH net v1 0/2] net: phy: fix driver cleanup after probe failure
From: Xuanqiang Luo
Date: Wed Aug 12 2026 - 08:57:49 EST
From: Xuanqiang Luo <luoxuanqiang@xxxxxxxxxx>
Patch 1 splits the phy_probe() error paths and makes phy_setup_ports()
unwind its own resources.
Patch 2 calls the PHY driver remove callback when phy_probe() fails after
the driver probe callback succeeds.
Xuanqiang Luo (2):
net: phy: split phy_probe() error paths
net: phy: call driver remove when core initialization fails
drivers/net/phy/phy_device.c | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
base-commit: db2ddb87143519e20a95aa36c60b36107b736a58
--
2.43.0