[PATCH v1 1/4] perf list: Fix asan issue

From: Ian Rogers
Date: Wed Nov 16 2022 - 02:13:12 EST


Missed due to the void* being a valid cast.

Fixes: c9367a0658eb ("perf list: Add JSON output option")
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
tools/perf/builtin-list.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c
index aec139f7fbb2..0450fbfd0a5c 100644
--- a/tools/perf/builtin-list.c
+++ b/tools/perf/builtin-list.c
@@ -466,7 +466,7 @@ int cmd_list(int argc, const char **argv)
pr_warning("WARNING: hybrid cputype is not supported!\n");
}
}
- print_cb.print_start(&ps);
+ print_cb.print_start(ps);

if (argc == 0) {
default_ps.metrics = true;
--
2.38.1.431.g37b22c650d-goog