projects
/
wrapfs-2.6.34.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9e6958
)
tracing: Fix double free when function profile init failed
author
Namhyung Kim
<namhyung.kim@lge.com>
Mon, 1 Apr 2013 12:46:23 +0000
(21:46 +0900)
committer
Paul Gortmaker
<paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:11:07 +0000
(16:11 -0500)
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
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/trace/ftrace.c
patch
|
blob
|
history
diff --git
a/kernel/trace/ftrace.c
b/kernel/trace/ftrace.c
index 7dd746cc86ff3ffe5ae8cc5a3e59456da7e08208..337f928749c7be452eb5dea9028293a5b293a4ff 100644
(file)
--- a/
kernel/trace/ftrace.c
+++ b/
kernel/trace/ftrace.c
@@
-480,7
+480,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;