From 983da3104edb7c88aa26ceb2eeab14985e4062db 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 c07dc3532dc..c1ddb9664de 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1084,7 +1084,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 7e28a4028d8..b3a367a5e8f 100644 --- a/src/gallium/auxiliary/driver_trace/tr_context.c +++ b/src/gallium/auxiliary/driver_trace/tr_context.c @@ -2191,7 +2191,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;