Re: [PATCH net v2] netdevsim: take bus device refcount before registering device

From: patchwork-bot+netdevbpf

Date: Thu Sep 03 2026 - 20:12:30 EST


Hello:

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

On Tue, 1 Sep 2026 22:57:04 -0400 you wrote:
> nsim_bus_dev_release() drops nsim_bus_devs when a device is freed, but
> the matching increment was done in new_device_store() after
> nsim_bus_dev_new() returned. When device_register() failed inside
> nsim_bus_dev_new(), put_device() invoked the release callback and
> decremented without an increment, driving the refcount to zero; a later
> creation then incremented from zero (refcount_t: addition on 0).
>
> [...]

Here is the summary with links:
- [net,v2] netdevsim: take bus device refcount before registering device
https://git.kernel.org/netdev/net-next/c/d5f5853f167f

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