aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/kernel/return_address.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/return_address.c')
-rw-r--r--arch/sh/kernel/return_address.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/return_address.c b/arch/sh/kernel/return_address.c
index cbf1dd5372b..5124aeb28c3 100644
--- a/arch/sh/kernel/return_address.c
+++ b/arch/sh/kernel/return_address.c
@@ -24,6 +24,8 @@ void *return_address(unsigned int depth)
struct dwarf_frame *tmp;
tmp = dwarf_unwind_stack(ra, frame);
+ if (!tmp)
+ return NULL;
if (frame)
dwarf_free_frame(frame);