diff options
-rw-r--r-- | kernel/trace/ftrace.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 08b536a2614e..6d89ab46c6e3 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -243,10 +243,8 @@ static void ftrace_update_pid_func(void) | |||
243 | set_ftrace_pid_function(func); | 243 | set_ftrace_pid_function(func); |
244 | func = ftrace_pid_func; | 244 | func = ftrace_pid_func; |
245 | } else { | 245 | } else { |
246 | if (func != ftrace_pid_func) | 246 | if (func == ftrace_pid_func) |
247 | goto out; | 247 | func = ftrace_pid_function; |
248 | |||
249 | set_ftrace_pid_function(func); | ||
250 | } | 248 | } |
251 | 249 | ||
252 | #ifdef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST | 250 | #ifdef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST |