diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/ftrace.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/ftrace.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c index 390311c0f03d..e66af6d265e8 100644 --- a/arch/powerpc/kernel/ftrace.c +++ b/arch/powerpc/kernel/ftrace.c | |||
@@ -449,7 +449,7 @@ void ftrace_replace_code(int enable) | |||
449 | rec = ftrace_rec_iter_record(iter); | 449 | rec = ftrace_rec_iter_record(iter); |
450 | ret = __ftrace_replace_code(rec, enable); | 450 | ret = __ftrace_replace_code(rec, enable); |
451 | if (ret) { | 451 | if (ret) { |
452 | ftrace_bug(ret, rec->ip); | 452 | ftrace_bug(ret, rec); |
453 | return; | 453 | return; |
454 | } | 454 | } |
455 | } | 455 | } |
diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c index 4cfeca6ffe11..1aea94d336c7 100644 --- a/arch/x86/kernel/ftrace.c +++ b/arch/x86/kernel/ftrace.c | |||
@@ -583,7 +583,7 @@ void ftrace_replace_code(int enable) | |||
583 | 583 | ||
584 | remove_breakpoints: | 584 | remove_breakpoints: |
585 | pr_warn("Failed on %s (%d):\n", report, count); | 585 | pr_warn("Failed on %s (%d):\n", report, count); |
586 | ftrace_bug(ret, rec ? rec->ip : 0); | 586 | ftrace_bug(ret, rec); |
587 | for_ftrace_rec_iter(iter) { | 587 | for_ftrace_rec_iter(iter) { |
588 | rec = ftrace_rec_iter_record(iter); | 588 | rec = ftrace_rec_iter_record(iter); |
589 | /* | 589 | /* |