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

Xuanqiang Luo <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
From: Xuanqiang Luo <[email protected]>

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.