[PATCH 6.6 095/444] objtool: Fix error handling inconsistencies in check()