Re: [PATCH net] net: bgmac: Fix potential MDIO use-after-free during removal

From: patchwork-bot+netdevbpf

Date: Fri Nov 20 2026 - 19:40:24 EST


Hello:

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

On Wed, 18 Nov 2026 22:18:23 +0800 you wrote:
> The BCMA remove callback destroys its MDIO bus before
> bgmac_enet_remove() disconnects the attached PHY. The PHY detach path
> still accesses that bus.
>
> Remove the netdev and disconnect the PHY before unregistering the MDIO
> bus.
>
> [...]

Here is the summary with links:
- [net] net: bgmac: Fix potential MDIO use-after-free during removal
https://git.kernel.org/netdev/net-next/c/f18a85d9dea6

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