objtool: is_fentry_call() crashes if call has no destination
authorAlexandre Chartre <alexandre.chartre@oracle.com>
Tue, 14 Apr 2020 10:36:10 +0000 (12:36 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 30 Apr 2020 18:14:32 +0000 (20:14 +0200)
commit87cf61fe848ca8ddf091548671e168f52e8a718e
tree5ce9737388ad3be7430ecfaf6e66e3170b00c45a
parent1ff865e343c2b59469d7e41d370a980a3f972c71
objtool: is_fentry_call() crashes if call has no destination

Fix is_fentry_call() so that it works if a call has no destination
set (call_dest). This needs to be done in order to support intra-
function calls.

Signed-off-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20200414103618.12657-2-alexandre.chartre@oracle.com
tools/objtool/check.c