mbox series

[v2,0/2] net: stmmac: fix an OF node reference leak in error paths in stmmac_probe_config_dt()

Message ID 20241218032230.117453-1-joe@pf.is.s.u-tokyo.ac.jp (mailing list archive)
Headers show
Series net: stmmac: fix an OF node reference leak in error paths in stmmac_probe_config_dt() | expand

Message

Joe Hattori Dec. 18, 2024, 3:22 a.m. UTC
This patch series fixes an OF node reference leak in
stmmac_probe_config_dt() and removes the unnecessary argument of
stmmac_remove_config_dt().

---
Changes in v2:
- Call of_node_put() instead of stmmac_remove_config_dt() when
  stmmac_mdio_setup() fails.
- Split the patch into two.
---
Joe Hattori (2):
  net: stmmac: call of_node_put() and stmmac_remove_config_dt() in error
    paths in stmmac_probe_config_dt()
  net: stmmac: remove the unnecessary argument of
    stmmac_remove_config_dt()

 .../ethernet/stmicro/stmmac/stmmac_platform.c | 37 +++++++------------
 1 file changed, 13 insertions(+), 24 deletions(-)