From: Lionel Landwerlin Date: Tue, 3 Dec 2019 14:35:45 +0000 (+0200) Subject: intel/perf: fix improper pointer access X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddacd3d43b203e7c66ec366820e2a230b7e3aa67;p=mesa.git intel/perf: fix improper pointer access This expression was unused by the macro, probably why it didn't register in the compilation. Signed-off-by: Lionel Landwerlin Cc: Reviewed-by: Mark Janes Reviewed-by: Kenneth Graunke --- diff --git a/src/intel/perf/gen_perf.c b/src/intel/perf/gen_perf.c index 0aa3845a29c..4c47aa6dcf2 100644 --- a/src/intel/perf/gen_perf.c +++ b/src/intel/perf/gen_perf.c @@ -2296,7 +2296,7 @@ accumulate_oa_reports(struct gen_perf_context *perf_ctx, first_samples_node = query->oa.samples_head->next; foreach_list_typed_from(struct oa_sample_buf, buf, link, - &perf_ctx.sample_buffers, + &perf_ctx->sample_buffers, first_samples_node) { int offset = 0;