aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/iris/iris_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_fence.c b/src/gallium/drivers/iris/iris_fence.c
index d4f11886f02..22fe69e9c55 100644
--- a/src/gallium/drivers/iris/iris_fence.c
+++ b/src/gallium/drivers/iris/iris_fence.c
@@ -466,7 +466,7 @@ iris_fence_create_fd(struct pipe_context *ctx,
syncobj->handle = args.handle;
pipe_reference_init(&syncobj->ref, 1);
- struct iris_seqno *seqno = malloc(sizeof(*seqno));
+ struct iris_seqno *seqno = calloc(1, sizeof(*seqno));
if (!seqno) {
free(syncobj);
*out = NULL;