Thread (5 messages) 5 messages, 3 authors, 6d ago

Re: [PATCH net v3] net: phylink: record the PHY only once bringup cannot fail

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-24 16:51:20
Also in: lkml

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Mon, 21 Sep 2026 01:20:44 +0300 you wrote:
phylink_bringup_phy() stores the PHY in pl->phydev before its last
fallible step: on a MAC whose phylink ops implement LPI,
phy_eee_rx_clock_stop() can fail with a real MDIO error. The callers
unwind with phy_detach(), which knows nothing about pl->phydev, so a
pointer to a PHY that is no longer attached outlives the failed
connect.

[...]
Here is the summary with links:
  - [net,v3] net: phylink: record the PHY only once bringup cannot fail
    https://git.kernel.org/netdev/net/c/a940003f44e7

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help