aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/ftrace.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index ad568c742bfc..0118979e211f 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -430,7 +430,7 @@ static void ftrace_replace_code(int enable)
430 if (failed && (rec->flags & FTRACE_FL_CONVERTED)) { 430 if (failed && (rec->flags & FTRACE_FL_CONVERTED)) {
431 rec->flags |= FTRACE_FL_FAILED; 431 rec->flags |= FTRACE_FL_FAILED;
432 if ((system_state == SYSTEM_BOOTING) || 432 if ((system_state == SYSTEM_BOOTING) ||
433 !kernel_text_address(rec->ip)) { 433 !core_kernel_text(rec->ip)) {
434 ftrace_del_hash(rec); 434 ftrace_del_hash(rec);
435 ftrace_free_rec(rec); 435 ftrace_free_rec(rec);
436 } 436 }
@@ -651,10 +651,9 @@ static int __ftrace_update_code(void *ignore)
651 ftrace_update_cnt++; 651 ftrace_update_cnt++;
652 } else { 652 } else {
653 if ((system_state == SYSTEM_BOOTING) || 653 if ((system_state == SYSTEM_BOOTING) ||
654 !kernel_text_address(p->ip)) { 654 !core_kernel_text(p->ip)) {
655 ftrace_del_hash(p); 655 ftrace_del_hash(p);
656 ftrace_free_rec(p); 656 ftrace_free_rec(p);
657
658 } 657 }
659 } 658 }
660 } 659 }