aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorWei Fang <[email protected]>2024-05-21 02:38:00 +0000
committerPaolo Abeni <[email protected]>2024-05-23 09:15:54 +0000
commit3b1c92f8e5371700fada307cc8fd2c51fa7bc8c1 (patch)
tree30d41b515ce3c8ab78a3b9a29dfa2c5dd1d2807a /net/unix/af_unix.c
parentRevert "ixgbe: Manual AN-37 for troublesome link partners for X550 SFI" (diff)
downloadkernel-3b1c92f8e5371700fada307cc8fd2c51fa7bc8c1.tar.gz
kernel-3b1c92f8e5371700fada307cc8fd2c51fa7bc8c1.zip
net: fec: avoid lock evasion when reading pps_enable
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions