]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/function-profiler: do not free per cpu variable stat
authorSteven Rostedt <srostedt@redhat.com>
Thu, 4 Jun 2009 04:55:45 +0000 (00:55 -0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Jul 2009 09:01:10 +0000 (11:01 +0200)
commit1d66d9810feac04a63e6853fa5d896b03f8d037c
treedc5cd05361845a431c1388f83f913e4610a2dfca
parentbd81c7ea647ec43cfa3c5aa93fb677eae5936a82
tracing/function-profiler: do not free per cpu variable stat

The per cpu variable stat is freeded if we fail to allocate a name
on start up. This was due to stat at first being allocated in the
initial design. But since then, it has become a static per cpu variable
but the free on error was not removed.

Also added __init annotation to the function that this is in.

[ Impact: prevent possible memory corruption on low mem at boot up ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ftrace.c