Thread (7 messages) 7 messages, 6 authors, 25d ago

Re: [PATCH net] net: macb: fix NULL pointer dereference on unbind with fixed-link

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-06 00:21:06
Also in: lkml

Hello:

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

On Wed, 2 Sep 2026 15:58:36 +0530 you wrote:
When the device tree describes a fixed-link and has no "mdio" child
node, macb_mii_init() returns early without allocating the MDIO bus,
leaving bp->mii_bus as NULL.

Two cleanup paths then dereference this NULL bus:

1. On driver unbind, macb_remove() unconditionally calls
   mdiobus_unregister(bp->mii_bus), which oopses:

[...]
Here is the summary with links:
  - [net] net: macb: fix NULL pointer dereference on unbind with fixed-link
    https://git.kernel.org/netdev/net/c/38b6be101006

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