From 1cb5fc706cf5913d9dee33c939f65a23ecea17a5 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 19 Mar 2014 10:11:13 -0400 Subject: freedreno: zero out unused field Since realloc() doesn't zero-init. Signed-off-by: Rob Clark --- freedreno/msm/msm_ringbuffer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'freedreno') diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c index c9c92561..e4d9561e 100644 --- a/freedreno/msm/msm_ringbuffer.c +++ b/freedreno/msm/msm_ringbuffer.c @@ -143,6 +143,7 @@ static struct drm_msm_gem_submit_cmd * get_cmd(struct fd_ringbuffer *ring, cmd->submit_idx = bo2idx(ring, target_bo, FD_RELOC_READ); cmd->submit_offset = submit_offset; cmd->size = size; + cmd->pad = 0; } return cmd; -- cgit v1.2.3