x86, ftrace: fix section mismatch in hw-branch-tracer
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 24 Feb 2009 12:55:18 +0000 (13:55 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 24 Feb 2009 17:23:34 +0000 (18:23 +0100)
commit5e01cb695d29619dd551bac7d6aa4ef1dc8ebc95
tree441e5401fe99fbf75468b3245c77db34fc6aef58
parenta7f4463e0300b5135c0f0caf7c34a0529405f986
x86, ftrace: fix section mismatch in hw-branch-tracer

Fix an invalid memory reference problem when cpu hotplug support is
disabled and the hw-branch-tracer is set as current tracer.

Initializing the tracer calls bts_trace_init() which has already
been freed at this time.

Reported-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_hw_branches.c