Josh Poimboeuf b296695298 objtool: Make BP scratch register warning more robust
If func is NULL, a seg fault can result.

This is a theoretical issue which was found by Coverity, ID: 1492002
("Dereference after null check").

Fixes: c705cecc8431 ("objtool: Track original function across branches")
Reported-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/afc628693a37acd287e843bcc5c0430263d93c74.1585761021.git.jpoimboe@redhat.com
2020-04-14 12:24:22 +02:00
..
2019-07-18 21:01:10 +02:00
2020-03-25 18:28:28 +01:00
2020-03-25 18:28:28 +01:00
2020-03-25 18:28:30 +01:00
2020-03-25 18:28:30 +01:00
2020-01-22 07:54:34 +01:00
2020-03-25 18:28:29 +01:00