aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/probe-finder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index 59b0115de30..a8513772df0 100644
--- a/tools/perf/util/probe-finder.c
+++ b/tools/perf/util/probe-finder.c
@@ -818,8 +818,10 @@ int find_perf_probe_point(int fd, unsigned long addr,
818 return -ENOENT; 818 return -ENOENT;
819 819
820 /* Find cu die */ 820 /* Find cu die */
821 if (!dwarf_addrdie(dbg, (Dwarf_Addr)addr, &cudie)) 821 if (!dwarf_addrdie(dbg, (Dwarf_Addr)addr, &cudie)) {
822 return -EINVAL; 822 ret = -EINVAL;
823 goto end;
824 }
823 825
824 /* Find a corresponding line */ 826 /* Find a corresponding line */
825 line = dwarf_getsrc_die(&cudie, (Dwarf_Addr)addr); 827 line = dwarf_getsrc_die(&cudie, (Dwarf_Addr)addr);