Re: [PATCH net-next v3] af_unix: Fix undefined 'other' error
From: patchwork-bot+netdevbpf
Date: Thu Feb 20 2025 - 20:31:15 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 18 Feb 2025 19:40:45 +0530 you wrote:
> Fix an issue detected by the Smatch static analysis tool where an
> "undefined 'other'" error occurs due to `__releases(&unix_sk(other)->lock)`
> being placed before 'other' is in scope.
>
> Remove the `__releases()` annotation from the `unix_wait_for_peer()`
> function to eliminate the Smatch warning. The annotation references `other`
> before it is declared, leading to a false positive error during static
> analysis.
>
> [...]
Here is the summary with links:
- [net-next,v3] af_unix: Fix undefined 'other' error
https://git.kernel.org/netdev/net-next/c/1340461e5168
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html