diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 86e14375e74e..01b62fa03996 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -629,7 +629,7 @@ int dso__load_kernel(struct dso *self, const char *vmlinux, | |||
629 | if (vmlinux) | 629 | if (vmlinux) |
630 | err = dso__load_vmlinux(self, vmlinux, filter, verbose); | 630 | err = dso__load_vmlinux(self, vmlinux, filter, verbose); |
631 | 631 | ||
632 | if (err) | 632 | if (err < 0) |
633 | err = dso__load_kallsyms(self, filter, verbose); | 633 | err = dso__load_kallsyms(self, filter, verbose); |
634 | 634 | ||
635 | return err; | 635 | return err; |