[PATCH net 0/2] net: macb: fix two probe path leaks

Nicolai Buchwitz posted 2 patches 2 weeks, 4 days ago
drivers/net/ethernet/cadence/macb_main.c | 3 +++
1 file changed, 3 insertions(+)
[PATCH net 0/2] net: macb: fix two probe path leaks
Posted by Nicolai Buchwitz 2 weeks, 4 days ago
Two independent leaks on macb probe paths, both noticed while reviewing
the fixed-link unbind crash fix [1].

Patch 1 destroys the phylink instance when probe fails after
macb_mii_init() has succeeded. Patch 2 drops the "mdio" child node
reference on the success path of macb_mii_init().

[1] https://lore.kernel.org/netdev/20260902102836.2019355-1-vineeth.karumanchi@amd.com/

Nicolai Buchwitz (2):
  net: macb: destroy the phylink instance on the probe error path
  net: macb: put the "mdio" child node reference on success

 drivers/net/ethernet/cadence/macb_main.c | 3 +++
 1 file changed, 3 insertions(+)


base-commit: 38b6be101006d3e7af972999f45d4f1e8250587a
-- 
2.53.0