[PATCH AUTOSEL 6.12 105/486] objtool: Fix error handling inconsistencies in check()