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)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 9 Apr 2013 22:54:04 +0000 (18:54 -0400)
commit83e03b3fe4daffdebbb42151d5410d730ae50bd1
tree007c3030b619ba28965c60e3e8fa57dd9bbc236e
parent395b97a3aeff0b8d949ee3e67bf8c11c5ffd6861
tracing: Fix double free when function profile init failed

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

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: stable@vger.kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c