[PATCH 3/3] net: stmmac: manage error case during stmmac_dvr_probe
Christophe Roullier
christophe.roullier at foss.st.com
Wed Feb 18 00:36:18 PST 2026
In case of error during stmmac_mdio_register, pm_runtime is not
cleaning before exit probe.
Signed-off-by: Christophe Roullier <christophe.roullier at foss.st.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 3d4f0e4cb53fb..d8eff228f3971 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -7999,6 +7999,8 @@ static int __stmmac_dvr_probe(struct device *device,
error_pcs_setup:
stmmac_mdio_unregister(ndev);
error_mdio_register:
+ pm_runtime_put_sync(device);
+ pm_runtime_disable(device);
stmmac_napi_del(ndev);
error_hw_init:
destroy_workqueue(priv->wq);
--
2.43.0
More information about the linux-arm-kernel
mailing list