aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index be1b7584796d..58d1612894ff 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -189,7 +189,7 @@ static int load_kernel(void)
189 return -1; 189 return -1;
190 190
191 err = dso__load_kernel(kernel_dso, vmlinux, NULL, verbose); 191 err = dso__load_kernel(kernel_dso, vmlinux, NULL, verbose);
192 if (err) { 192 if (err <= 0) {
193 dso__delete(kernel_dso); 193 dso__delete(kernel_dso);
194 kernel_dso = NULL; 194 kernel_dso = NULL;
195 } else 195 } else