diff options
-rw-r--r-- | tools/perf/util/probe-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index b71acd6423cb..61191c6cbe7a 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -135,7 +135,7 @@ const char *kernel_get_module_path(const char *module) | |||
135 | if (dso__load_vmlinux(dso, map, vmlinux_name, NULL) <= 0) | 135 | if (dso__load_vmlinux(dso, map, vmlinux_name, NULL) <= 0) |
136 | return NULL; | 136 | return NULL; |
137 | } else { | 137 | } else { |
138 | if (dso__load_vmlinux_path(dso, map, NULL) < 0) { | 138 | if (dso__load_vmlinux_path(dso, map, NULL) <= 0) { |
139 | pr_debug("Failed to load kernel map.\n"); | 139 | pr_debug("Failed to load kernel map.\n"); |
140 | return NULL; | 140 | return NULL; |
141 | } | 141 | } |