diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-01-07 02:40:44 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-07 02:40:44 +0100 |
commit | 0e1ff5d72a6393f2ef5dbf74f58bb55a12d63834 (patch) | |
tree | e9a9600a14fa4d1f2b045097c9e9d7d03463f0bf /drivers/bluetooth | |
parent | ring-buffer: Wrap a list.next reference with rb_list_head() (diff) | |
download | linux-0e1ff5d72a6393f2ef5dbf74f58bb55a12d63834.tar.xz linux-0e1ff5d72a6393f2ef5dbf74f58bb55a12d63834.zip |
ring-buffer: Add rb_list_head() wrapper around new reader page next field
If the very unlikely case happens where the writer moves the head by one
between where the head page is read and where the new reader page
is assigned _and_ the writer then writes and wraps the entire ring buffer
so that the head page is back to what was originally read as the head page,
the page to be swapped will have a corrupted next pointer.
Simple solution is to wrap the assignment of the next pointer with a
rb_list_head().
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/bluetooth')
0 files changed, 0 insertions, 0 deletions