Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fc1dfbe authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237164303-11476-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ac1d52d0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);