diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-04-01 21:46:23 +0900 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-04-09 18:54:04 -0400 |
commit | 83e03b3fe4daffdebbb42151d5410d730ae50bd1 (patch) | |
tree | 007c3030b619ba28965c60e3e8fa57dd9bbc236e /kernel | |
parent | 395b97a3aeff0b8d949ee3e67bf8c11c5ffd6861 (diff) | |
download | linux-stable-83e03b3fe4daffdebbb42151d5410d730ae50bd1.tar.gz linux-stable-83e03b3fe4daffdebbb42151d5410d730ae50bd1.tar.bz2 linux-stable-83e03b3fe4daffdebbb42151d5410d730ae50bd1.zip |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/ftrace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 7e897106b7e0..926ebfb74936 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -694,7 +694,6 @@ int ftrace_profile_pages_init(struct ftrace_profile_stat *stat) free_page(tmp); } - free_page((unsigned long)stat->pages); stat->pages = NULL; stat->start = NULL; |