aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index c701476a648b..f136fe5da07a 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -1074,14 +1074,9 @@ static void ftrace_replace_code(int enable)
1074 failed = __ftrace_replace_code(rec, enable); 1074 failed = __ftrace_replace_code(rec, enable);
1075 if (failed) { 1075 if (failed) {
1076 rec->flags |= FTRACE_FL_FAILED; 1076 rec->flags |= FTRACE_FL_FAILED;
1077 if ((system_state == SYSTEM_BOOTING) || 1077 ftrace_bug(failed, rec->ip);
1078 !core_kernel_text(rec->ip)) { 1078 /* Stop processing */
1079 ftrace_free_rec(rec); 1079 return;
1080 } else {
1081 ftrace_bug(failed, rec->ip);
1082 /* Stop processing */
1083 return;
1084 }
1085 } 1080 }
1086 } while_for_each_ftrace_rec(); 1081 } while_for_each_ftrace_rec();
1087} 1082}