X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fsh%2Fkernel%2Freturn_address.c;h=5124aeb28c3f333d9b7ff7755d8f01e738a044d1;hb=2aa72f612144a0a7d4b0b22ae7c122692ac6a013;hp=cbf1dd5372b2d223f399ab884fd46bfbd83246d1;hpb=5bfec46baa3a752393433b8d89d3b2c70820f61d;p=pandora-kernel.git diff --git a/arch/sh/kernel/return_address.c b/arch/sh/kernel/return_address.c index cbf1dd5372b2..5124aeb28c3f 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);