Re: [PATCH net] nfp: Check resource mutex allocation
From: patchwork-bot+netdevbpf
Date: Tue Jul 21 2026 - 07:11:16 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Wed, 8 Jul 2026 22:34:08 +0800 you wrote:
> nfp_cpp_resource_find() allocates a CPP mutex handle for the matching
> resource-table entry and then reports success. nfp_resource_try_acquire()
> immediately passes that handle to nfp_cpp_mutex_trylock().
>
> However, nfp_cpp_mutex_alloc() returns NULL on failure. If that happens
> for a matching table entry, the resource lookup still returns success and
> the following trylock dereferences a NULL mutex pointer while opening the
> resource.
>
> [...]
Here is the summary with links:
- [net] nfp: Check resource mutex allocation
https://git.kernel.org/netdev/net/c/a61b4db34a75
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html