[PATCH 6.14 168/783] objtool: Fix error handling inconsistencies in check()