Message ID | 20221209105247.01d4e51d@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | fd3dc56253acbe9c641a66d312d8393cd55eb04c |
Headers | show |
Series | ftrace/x86: Add back ftrace_expected for ftrace bug reports | expand |
diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c index bd165004776d..e07234ec7e23 100644 --- a/arch/x86/kernel/ftrace.c +++ b/arch/x86/kernel/ftrace.c @@ -217,7 +217,9 @@ void ftrace_replace_code(int enable) ret = ftrace_verify_code(rec->ip, old); if (ret) { + ftrace_expected = old; ftrace_bug(ret, rec); + ftrace_expected = NULL; return; } }