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/ (local)
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