aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/ring_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 16b24d49604c..945302368691 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -1708,7 +1708,7 @@ void ring_buffer_discard_commit(struct ring_buffer *buffer,
1708 1708
1709 bpage = cpu_buffer->tail_page; 1709 bpage = cpu_buffer->tail_page;
1710 1710
1711 if (bpage == (void *)addr && rb_page_write(bpage) == old_index) { 1711 if (bpage->page == (void *)addr && rb_page_write(bpage) == old_index) {
1712 /* 1712 /*
1713 * This is on the tail page. It is possible that 1713 * This is on the tail page. It is possible that
1714 * a write could come in and move the tail page 1714 * a write could come in and move the tail page