net: macb: fix two probe path leaks
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: macb: destroy the phylink instance on the probe error pathdrivers/ | +1 | 0 replies | Applied |
| 2/2 | net: macb: put the "mdio" child node reference on successdrivers/ | +2 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net 0/2] net: macb: fix two probe path leaks
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/[email protected]/
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
Signature · 1 line
2.53.0