diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index 6dbb9fae0f9d4f4c54e78431f84ea3e034e07f0a..e7a7ac40e0454229cd82101735d361481d3fd7ce 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -312,7 +312,7 @@ static int read_symbols(struct elf *elf) if (!pfunc) { WARN("%s(): can't find parent function", sym->name); - goto err; + return -1; } sym->pfunc = pfunc;