Skip to content
Commit 2490695f authored by Niels Dossche's avatar Niels Dossche Committed by Greg Kroah-Hartman
Browse files

sfc: extend the locking on mcdi->seqno

[ Upstream commit f1fb205e

 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2fad5b69
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