X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fsh%2Fkernel%2Freturn_address.c;h=5124aeb28c3f333d9b7ff7755d8f01e738a044d1;hb=84f7586edab93052bbe7eb72e1e9bce5f7b6ae45;hp=cbf1dd5372b2d223f399ab884fd46bfbd83246d1;hpb=bb4f6b0cd7524ad7d56709723eaf8a7bf5a87b57;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);