Re: [PATCH net] devlink: fix net namespace reference leak in reload
From: patchwork-bot+netdevbpf
Date: Fri Jul 31 2026 - 21:42:00 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 29 Jul 2026 11:06:00 +0300 you wrote:
> From: Or Har-Toov <ohartoov@xxxxxxxxxx>
>
> devlink_nl_reload_doit() calls devlink_netns_get(), which returns a net
> with a held reference. When the requested namespace differs from the
> current one and the reload action is not DRIVER_REINIT, the function
> returns -EOPNOTSUPP without releasing the reference. Add the missing
> put_net() on this error path.
>
> [...]
Here is the summary with links:
- [net] devlink: fix net namespace reference leak in reload
https://git.kernel.org/netdev/net/c/1c4dac9bf1d2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html