Commit 83e03b3f authored by Namhyung Kim's avatar Namhyung Kim Committed by Steven Rostedt
Browse files

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.


Cc: Frederic Weisbecker <>
Cc: Namhyung Kim <>
Signed-off-by: default avatarNamhyung Kim <>
Signed-off-by: default avatarSteven Rostedt <>
parent 395b97a3
......@@ -694,7 +694,6 @@ int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)
free_page((unsigned long)stat->pages);
stat->pages = NULL;
stat->start = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment