aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-04-10 15:56:57 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-10 15:56:57 -0700
commit9baba6660bb616ca6272314a62febe8f6726ad30 (patch)
tree66d79a8ab8301e65b55ad402750fc4860e36820a
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
parenttracing: Fix double free when function profile init failed (diff)
downloadlinux-dev-9baba6660bb616ca6272314a62febe8f6726ad30.tar.xz
linux-dev-9baba6660bb616ca6272314a62febe8f6726ad30.zip
Merge tag 'trace-fixes-3.9-rc-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing fix from Steven Rostedt: "Namhyung Kim fixed a long standing bug that can cause a kernel panic. If the function profiler fails to allocate memory for everything, it will do a double free on the same pointer which can cause a panic" * tag 'trace-fixes-3.9-rc-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing: Fix double free when function profile init failed
-rw-r--r--kernel/trace/ftrace.c1
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;