From 8142fc5a455e010abf2ce55d0ad938f7ae88bb32 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: --- src/gallium/auxiliary/driver_trace/tr_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/driver_trace/tr_context.c b/src/gallium/auxiliary/driver_trace/tr_context.c index 9465a665552..6bbfb2a53e7 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;