aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/return_address.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/return_address.c')
-rw-r--r--arch/arm/kernel/return_address.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c
index 7b42ac010fdf..00c11579406c 100644
--- a/arch/arm/kernel/return_address.c
+++ b/arch/arm/kernel/return_address.c
@@ -42,6 +42,10 @@ void *return_address(unsigned int level)
frame.sp = current_stack_pointer;
frame.lr = (unsigned long)__builtin_return_address(0);
frame.pc = (unsigned long)return_address;
+#ifdef CONFIG_KRETPROBES
+ frame.kr_cur = NULL;
+ frame.tsk = current;
+#endif
walk_stackframe(&frame, save_return_addr, &data);