[PATCH AUTOSEL 6.6 065/294] objtool: Fix error handling inconsistencies in check()