summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorWei Fang <wei.fang@nxp.com>2024-05-21 05:38:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-12 12:39:43 +0300
commit3c8ea975f4921c26b19fefebe02b7b63b66c1913 (patch)
tree33129849dfc01980599d0b84bd7ea533ac314066 /.clang-format
parent05785e818a9a9cdb290788406fc3a6ef92c6ab63 (diff)
downloadlinux-3c8ea975f4921c26b19fefebe02b7b63b66c1913.tar.xz
net: fec: avoid lock evasion when reading pps_enable
[ Upstream commit 3b1c92f8e5371700fada307cc8fd2c51fa7bc8c1 ] 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. Fixes: 278d24047891 ("net: fec: ptp: Enable PPS output based on ptp clock") Signed-off-by: Wei Fang <wei.fang@nxp.com> Link: https://lore.kernel.org/r/20240521023800.17102-1-wei.fang@nxp.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions