diff options
Diffstat (limited to 'kernel/trace/ring_buffer.c')
-rw-r--r-- | kernel/trace/ring_buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index b32ed0e385a5..b979426d16c6 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -1567,6 +1567,10 @@ int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size, | |||
1567 | 1567 | ||
1568 | put_online_cpus(); | 1568 | put_online_cpus(); |
1569 | } else { | 1569 | } else { |
1570 | /* Make sure this CPU has been intitialized */ | ||
1571 | if (!cpumask_test_cpu(cpu_id, buffer->cpumask)) | ||
1572 | goto out; | ||
1573 | |||
1570 | cpu_buffer = buffer->buffers[cpu_id]; | 1574 | cpu_buffer = buffer->buffers[cpu_id]; |
1571 | 1575 | ||
1572 | if (nr_pages == cpu_buffer->nr_pages) | 1576 | if (nr_pages == cpu_buffer->nr_pages) |