From d6c911992621c6492bc379150867b6e5c604a700 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 27 Jan 2022 13:51:06 -0500 Subject: [PATCH] aux/trace: rzalloc the context struct this has problems if pointers are garbage cc: mesa-stable Reviewed-by: Adam Jackson Part-of: (cherry picked from commit 8142fc5a455e010abf2ce55d0ad938f7ae88bb32) --- .pick_status.json | 2 +- src/gallium/auxiliary/driver_trace/tr_context.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index ac4757ca23c..78e79c35f0d 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -904,7 +904,7 @@ "description": "aux/trace: rzalloc the context struct", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/gallium/auxiliary/driver_trace/tr_context.c b/src/gallium/auxiliary/driver_trace/tr_context.c index 5c58b3f95a1..618f14ef5ce 100644 --- a/src/gallium/auxiliary/driver_trace/tr_context.c +++ b/src/gallium/auxiliary/driver_trace/tr_context.c @@ -2265,7 +2265,7 @@ trace_context_create(struct trace_screen *tr_scr, if (!trace_enabled()) goto error1; - tr_ctx = ralloc(NULL, struct trace_context); + tr_ctx = rzalloc(NULL, struct trace_context); if (!tr_ctx) goto error1;