tracing: Use free_percpu instead of kfree
commit75fb4090b39a3d7bf9ac77a28665c991ec5eaadc
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 3 Oct 2009 13:08:54 +0000 (3 15:08 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 5 Oct 2009 08:57:56 +0000 (5 10:57 +0200)
tree127abba2cc4382cd7f70e4867184e5af0b275748
parentfe8e5b5a60f8427940d33b205e127aecfb0bca10
tracing: Use free_percpu instead of kfree

In the event->profile_enable() failure path, we release the per cpu
buffers using kfree which is wrong because they are per cpu pointers.
Although free_percpu only wraps kfree for now, that may change in the
future so lets use the correct way.

Reported-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
kernel/trace/trace_event_profile.c