Mesa (staging/19.3): intel/perf: fix improper pointer access

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 4 21:41:12 UTC 2019


Module: Mesa
Branch: staging/19.3
Commit: fb6db6b5bb3cb5fc5f43f7037fad9386ce81ceeb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb6db6b5bb3cb5fc5f43f7037fad9386ce81ceeb

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Tue Dec  3 16:35:45 2019 +0200

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 <lionel.g.landwerlin at intel.com>
Cc: <mesa-stable at lists.freedesktop.org>
Reviewed-by: Mark Janes <mark.a.janes at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
(cherry picked from commit ddacd3d43b203e7c66ec366820e2a230b7e3aa67)

---

 src/intel/perf/gen_perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/perf/gen_perf.c b/src/intel/perf/gen_perf.c
index 20d84437e43..2e0d31c2244 100644
--- a/src/intel/perf/gen_perf.c
+++ b/src/intel/perf/gen_perf.c
@@ -2283,7 +2283,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;




More information about the mesa-commit mailing list