diff options
Diffstat (limited to 'kernel/trace/ring_buffer.c')
-rw-r--r-- | kernel/trace/ring_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index a8c275c01e83..9baad7ee4b36 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -2492,6 +2492,7 @@ int ring_buffer_read_page(struct ring_buffer *buffer, | |||
2492 | rb_init_page(bpage); | 2492 | rb_init_page(bpage); |
2493 | bpage = cpu_buffer->reader_page->page; | 2493 | bpage = cpu_buffer->reader_page->page; |
2494 | cpu_buffer->reader_page->page = *data_page; | 2494 | cpu_buffer->reader_page->page = *data_page; |
2495 | local_set(&cpu_buffer->reader_page->write, 0); | ||
2495 | cpu_buffer->reader_page->read = 0; | 2496 | cpu_buffer->reader_page->read = 0; |
2496 | *data_page = bpage; | 2497 | *data_page = bpage; |
2497 | } | 2498 | } |