Re: [PATCH net v4] bnxt_en: don't leave an XDP program installed when the open fails

From: patchwork-bot+netdevbpf

Date: Mon Oct 19 2026 - 09:21:58 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Mon, 12 Oct 2026 12:58:02 +0530 you wrote:
> bnxt_xdp_set() stores the new program and drops the reference on the old
> one before reopening the NIC. If bnxt_open_nic() then fails, ndo_bpf()
> returns an error with the new program still in bp->xdp_prog. The caller
> treats the error as "nothing was installed" and drops its own reference,
> so bp->xdp_prog is left pointing at a freed program and the next XDP
> update dereferences it:
>
> [...]

Here is the summary with links:
- [net,v4] bnxt_en: don't leave an XDP program installed when the open fails
https://git.kernel.org/netdev/net/c/78731b46967e

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