[PATCH net v1 0/2] net: phy: fix driver cleanup after probe failure

Xuanqiang Luo posted 2 patches 1 month, 2 weeks ago
drivers/net/phy/phy_device.c | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
[PATCH net v1 0/2] net: phy: fix driver cleanup after probe failure
Posted by Xuanqiang Luo 1 month, 2 weeks ago
From: Xuanqiang Luo <luoxuanqiang@kylinos.cn>

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