aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/unwind_frame.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86/kernel/unwind_frame.c b/arch/x86/kernel/unwind_frame.c
index 20d4b4e0800c..4443e499f279 100644
--- a/arch/x86/kernel/unwind_frame.c
+++ b/arch/x86/kernel/unwind_frame.c
@@ -51,16 +51,7 @@ unsigned long unwind_get_return_address(struct unwind_state *state)
51 addr = ftrace_graph_ret_addr(state->task, &state->graph_idx, *addr_p, 51 addr = ftrace_graph_ret_addr(state->task, &state->graph_idx, *addr_p,
52 addr_p); 52 addr_p);
53 53
54 if (!__kernel_text_address(addr)) { 54 return __kernel_text_address(addr) ? addr : 0;
55 printk_deferred_once(KERN_WARNING
56 "WARNING: unrecognized kernel stack return address %p at %p in %s:%d\n",
57 (void *)addr, addr_p, state->task->comm,
58 state->task->pid);
59 unwind_dump(state, addr_p);
60 return 0;
61 }
62
63 return addr;
64} 55}
65EXPORT_SYMBOL_GPL(unwind_get_return_address); 56EXPORT_SYMBOL_GPL(unwind_get_return_address);
66 57