]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing: Fix double free when function profile init failed
authorNamhyung Kim <namhyung.kim@lge.com>
Mon, 1 Apr 2013 12:46:23 +0000 (21:46 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 04:48:27 +0000 (21:48 -0700)
commit0678762860d16c9434b60a07312fa2c73aeefb3b
treebafd876d76ee0cbc1df038f735a7d4ac54d5bb20
parentc6277b3e6d21c46a34b31b1a1221189de5f10ec8
tracing: Fix double free when function profile init failed

commit 83e03b3fe4daffdebbb42151d5410d730ae50bd1 upstream.

On the failure path, stat->start and stat->pages will refer same page.
So it'll attempt to free the same page again and get kernel panic.

Link: http://lkml.kernel.org/r/1364820385-32027-1-git-send-email-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/ftrace.c