Re: [PATCH net v2] net: mctp i2c: check length before marking flow active

From: patchwork-bot+netdevbpf

Date: Tue Apr 28 2026 - 07:34:15 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 23 Apr 2026 00:46:52 -0700 you wrote:
> Currently, mctp_i2c_get_tx_flow_state() is called before the packet length
> sanity check. This function marks a new flow as active in the MCTP core.
>
> If the sanity check fails, mctp_i2c_xmit() returns early without calling
> mctp_i2c_lock_nest(). This results in a mismatched locking state: the
> flow is active, but the I2C bus lock was never acquired for it.
>
> [...]

Here is the summary with links:
- [net,v2] net: mctp i2c: check length before marking flow active
https://git.kernel.org/netdev/net/c/4ca07b9239bd

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