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

From: patchwork-bot+netdevbpf

Date: Sat Sep 05 2026 - 20:21:30 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

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