diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/symbol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 1270cf867e61..f1f609dcf9a1 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -1650,12 +1650,12 @@ static int dso__load_kernel_sym(struct dso *self, struct map *map, | |||
1650 | getenv("HOME"), sbuild_id) == -1) | 1650 | getenv("HOME"), sbuild_id) == -1) |
1651 | return -1; | 1651 | return -1; |
1652 | 1652 | ||
1653 | kallsyms_filename = kallsyms_allocated_filename; | ||
1654 | |||
1653 | if (access(kallsyms_filename, F_OK)) { | 1655 | if (access(kallsyms_filename, F_OK)) { |
1654 | free(kallsyms_allocated_filename); | 1656 | free(kallsyms_allocated_filename); |
1655 | return -1; | 1657 | return -1; |
1656 | } | 1658 | } |
1657 | |||
1658 | kallsyms_filename = kallsyms_allocated_filename; | ||
1659 | } else { | 1659 | } else { |
1660 | /* | 1660 | /* |
1661 | * Last resort, if we don't have a build-id and couldn't find | 1661 | * Last resort, if we don't have a build-id and couldn't find |