diff options
author | 2022-03-01 23:28:22 +0100 | |
---|---|---|
committer | 2022-03-03 14:11:58 +0000 | |
commit | f1fb205efb0ccca55626fd4ef38570dd16b44719 (patch) | |
tree | 6b78cbee62e32b111159b71959417620b7c35a32 /lib/test_overflow.c | |
parent | Merge branch 'smc-fix' (diff) | |
download | linux-dev-f1fb205efb0ccca55626fd4ef38570dd16b44719.tar.xz linux-dev-f1fb205efb0ccca55626fd4ef38570dd16b44719.zip |
sfc: extend the locking on mcdi->seqno
seqno could be read as a stale value outside of the lock. The lock is
already acquired to protect the modification of seqno against a possible
race condition. Place the reading of this value also inside this locking
to protect it against a possible race condition.
Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions