Skip to content
Commit f1fb205e authored by Niels Dossche's avatar Niels Dossche Committed by David S. Miller
Browse files

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: default avatarNiels Dossche <dossche.niels@gmail.com>
Acked-by: default avatarMartin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f8e9bd34
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment