mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 19:00:13 +01:00
aux/trace: rzalloc the context struct
this has problems if pointers are garbage
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14854>
(cherry picked from commit 8142fc5a45)
This commit is contained in:
parent
c31de8e007
commit
983da3104e
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue