diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2016-12-07 14:31:33 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-12-07 14:36:21 +0100 |
commit | b18cc3de00ec3442cf40ac60787dbe0703b99e24 (patch) | |
tree | 70db9244d8ecf7126726510af587e65b4eae4574 /drivers/spi/spi-fsl-dspi.c | |
parent | 1f759d328f6d8c06b5db55374b028565187deaca (diff) |
tracing/rb: Init the CPU mask on allocation
Before commit b32614c03413 ("tracing/rb: Convert to hotplug state machine")
the allocated cpumask was initialized to the mask of online or possible
CPUs. After the CPU hotplug changes the buffer initialization moved to
trace_rb_cpu_prepare() but the cpumask is allocated with alloc_cpumask()
and therefor has random content. As a consequence the cpu buffers are not
initialized and a later access dereferences a NULL pointer.
Use zalloc_cpumask() instead so trace_rb_cpu_prepare() initializes the
buffers properly.
Fixes: b32614c03413 ("tracing/rb: Convert to hotplug state machine")
Reported-by: Tetsuo Handa <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
0 files changed, 0 insertions, 0 deletions