]> git.baikalelectronics.ru Git - kernel.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)
commit394c3114f9571f21f1216edec7b760287bad7cd8
tree36725c70bc83ff45d66bdb4f7b3377d09722e4e7
parentc3fcc40bda24f6540a58e4013cbbebf54eb21407
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