From: Lionel Landwerlin Date: Thu, 21 Jul 2022 07:46:50 +0000 (+0000) Subject: intel/perf: allocate cleared counter infos X-Git-Tag: upstream/23.3.3~16779 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e754bf6be49788e5f6604a15cd36a3324fd94a39;p=platform%2Fupstream%2Fmesa.git intel/perf: allocate cleared counter infos This array of structure needs to be initialized to 0 as it contains a bitset we don't explicitly clear. Signed-off-by: Lionel Landwerlin Fixes: 3144bc1d3369 ("intel/perf: move query_mask and location out of gen_perf_query_counter") Reviewed-by: Ivan Briano Part-of: --- diff --git a/src/intel/perf/intel_perf.c b/src/intel/perf/intel_perf.c index 45cb528..ec1e6ff 100644 --- a/src/intel/perf/intel_perf.c +++ b/src/intel/perf/intel_perf.c @@ -638,7 +638,7 @@ build_unique_counter_list(struct intel_perf_config *perf) * below contains pointers to this array. */ struct intel_perf_query_counter_info *counter_infos = - ralloc_array_size(perf, sizeof(counter_infos[0]), max_counters); + rzalloc_array_size(perf, sizeof(counter_infos[0]), max_counters); perf->n_counters = 0;