Skip to content

net: macb: fix two probe path leaks

Nicolai Buchwitz lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: macb: destroy the phylink instance on the probe error pathdrivers/net/ethernet/cadence/macb_main.c+1 -00 repliesApplied
2/2net: macb: put the "mdio" child node reference on successdrivers/net/ethernet/cadence/macb_main.c+2 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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