Re: [PATCH v2] mctp i3c: Fix locking in an error path
From: patchwork-bot+netdevbpf
Date: Tue Nov 03 2026 - 04:15:10 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 29 Oct 2026 11:00:39 -0700 you wrote:
> If netdev_alloc_skb() fails, mctp_i3c_read() jumps to a label that
> unlocks mi->lock although that mutex has not been locked yet. Fix this
> by returning -ENOMEM directly. This bug has been detected by the Clang
> thread-safety analyzer.
>
> Cc: Leo Yang <Leo-Yang@xxxxxxxxxxxx>
> Cc: Paolo Abeni <pabeni@xxxxxxxxxx>
> Cc: Jeremy Kerr <jk@xxxxxxxxxxxxxxxxxxxx>
> Cc: Matt Johnston <matt@xxxxxxxxxxxxxxxxxxxx>
> Cc: netdev@xxxxxxxxxxxxxxx
> Fixes: 2d2d4f60ed26 ("mctp i3c: fix MCTP I3C driver multi-thread issue")
> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
>
> [...]
Here is the summary with links:
- [v2] mctp i3c: Fix locking in an error path
https://git.kernel.org/netdev/net/c/750eb5ab457e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html