]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rxrpc: Use ACCESS_ONCE() when accessing circular buffer pointers
authorDavid Howells <dhowells@redhat.com>
Fri, 4 Mar 2016 15:58:06 +0000 (15:58 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 4 Mar 2016 15:58:06 +0000 (15:58 +0000)
commitee72b9fddb41a2087b4a7aa74791ef1700f3f6cc
tree36725c70bc83ff45d66bdb4f7b3377d09722e4e7
parentb4f1342f915201ee15ef6890857b5469879ee402
rxrpc: Use ACCESS_ONCE() when accessing circular buffer pointers

Use ACCESS_ONCE() when accessing the other-end pointer into a circular
buffer as it's possible the other-end pointer might change whilst we're
doing this, and if we access it twice, we might get some weird things
happening.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-output.c