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

Ian Rogers posted 4 patches 3 years, 4 months ago
[PATCH v1 1/4] perf list: Fix asan issue
Posted by Ian Rogers 3 years, 4 months ago
Missed due to the void* being a valid cast.

Fixes: c9367a0658eb ("perf list: Add JSON output option")
Signed-off-by: Ian Rogers <irogers@google.com>
---
 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