perf tools: Check recorded kernel version when finding vmlinux
[deliverable/linux.git] / tools / perf / builtin-inject.c
index 18eaefd3cd0c431a1970b8e31335cc73487e7ff8..3a62b6b3c8fdcc2dd308791dc14d5bd18a6ed087 100644 (file)
@@ -462,7 +462,7 @@ int cmd_inject(int argc, const char **argv, const char *prefix __maybe_unused)
        if (inject.session == NULL)
                return -ENOMEM;
 
-       if (symbol__init() < 0)
+       if (symbol__init(&inject.session->header.env) < 0)
                return -1;
 
        ret = __cmd_inject(&inject);
This page took 0.045412 seconds and 5 git commands to generate.