From: Paul Mundt Date: Tue, 25 May 2010 07:16:40 +0000 (+0900) Subject: sh: handle early calls to return_address() when using dwarf unwinder. X-Git-Tag: v2.6.35-rc2~9^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a37f520523df971bd3f926d8bd45ead37e857e8;p=pandora-kernel.git sh: handle early calls to return_address() when using dwarf unwinder. The dwarf unwinder ties in to an early initcall, but it's possible that return_address() calls will be made prior to that. This implements some additional error handling in to the dwarf unwinder as well as an exit path in the return_address() case to bail out if the unwinder hasn't come up yet. This fixes a NULL pointer deref in early boot when mempool_alloc() blows up on the not-yet-ready mempool via dwarf_unwind_stack(). Signed-off-by: Paul Mundt --- Reading git-diff-tree failed