rxrpc: Call state should be read with READ_ONCE() under some circumstances
authorDavid Howells <dhowells@redhat.com>
Sat, 4 Mar 2017 00:01:41 +0000 (00:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Mar 2017 21:59:06 +0000 (13:59 -0800)
commit146d8fef9da1ba854de7fa28b9cb9eb147535f88
tree76b9bea4ac0c4bcd1a2c50418a304007b54ad6bd
parent02b2faaf0af1d85585f6d6980e286d53612acfc2
rxrpc: Call state should be read with READ_ONCE() under some circumstances

The call state may be changed at any time by the data-ready routine in
response to received packets, so if the call state is to be read and acted
upon several times in a function, READ_ONCE() must be used unless the call
state lock is held.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/input.c
net/rxrpc/recvmsg.c
net/rxrpc/sendmsg.c