Skip to content
Commit 8a37f520 authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent e1f42ff4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment