Re: [PATCH v2 net] net: fec: avoid lock evasion when reading pps_enable
From: patchwork-bot+netdevbpf
Date: Thu May 23 2024 - 05:40:46 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Tue, 21 May 2024 10:38:00 +0800 you wrote:
> The assignment of pps_enable is protected by tmreg_lock, but the read
> operation of pps_enable is not. So the Coverity tool reports a lock
> evasion warning which may cause data race to occur when running in a
> multithread environment. Although this issue is almost impossible to
> occur, we'd better fix it, at least it seems more logically reasonable,
> and it also prevents Coverity from continuing to issue warnings.
>
> [...]
Here is the summary with links:
- [v2,net] net: fec: avoid lock evasion when reading pps_enable
https://git.kernel.org/netdev/net/c/3b1c92f8e537
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html