From: Frederic Weisbecker Date: Mon, 16 Mar 2009 00:45:03 +0000 (+0100) Subject: tracing/core: fix early free of cpumasks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fc1dfbe17e7705c55b7a99da995fa565e26f151;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tracing/core: fix early free of cpumasks Impact: fix crashes when tracing cpumasks While ring-buffer allocation, the cpumasks are allocated too, including the tracing cpumask and the per-cpu file mask handler. But these cpumasks are freed accidentally just after. Fix it. Reported-by: Ingo Molnar Signed-off-by: Frederic Weisbecker LKML-Reference: <1237164303-11476-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar --- diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index c0cf946d42f5..ae32d3b99b4b 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -4125,7 +4125,8 @@ __init static int tracer_alloc_buffers(void) &trace_panic_notifier); register_die_notifier(&trace_die_notifier); - ret = 0; + + return 0; out_free_cpumask: free_cpumask_var(tracing_reader_cpumask);