Re: [PATCH net] net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference

From: patchwork-bot+netdevbpf

Date: Wed Oct 21 2026 - 20:33:49 EST


Hello:

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

On Fri, 16 Oct 2026 19:04:21 +0800 you wrote:
> The driver assigns netdev_ops after hbg_init(), but hbg_init() calls
> hbg_mdio_init() -> hbg_phy_connect() -> phy_connect_direct() ->
> phy_attach_direct() -> phy_link_topo_add_phy(), which invokes
> netdev_need_ops_lock(). With CONFIG_NET_SHAPER enabled, this function
> dereferences dev->netdev_ops->net_shaper_ops. Since netdev_ops is still
> NULL at this point, a NULL pointer dereference occurs.
>
> [...]

Here is the summary with links:
- [net] net: hibmcge: set netdev_ops before hbg_init() to fix NULL pointer dereference
https://git.kernel.org/netdev/net/c/9b8ae9aaa1b8

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