From: Eric Anholt Date: Fri, 22 Aug 2014 23:36:29 +0000 (-0700) Subject: vc4: Clear padding of ioctl arguments. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9542e682078a1b2e65f6b62a8db58f25cff18078;p=mesa.git vc4: Clear padding of ioctl arguments. Fixes valgrind complaints from valgrind being unaware of our ioctls. --- diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index 6d622c063d6..7664d860995 100644 --- a/src/gallium/drivers/vc4/vc4_bufmgr.c +++ b/src/gallium/drivers/vc4/vc4_bufmgr.c @@ -77,6 +77,7 @@ vc4_bo_free(struct vc4_bo *bo) } struct drm_gem_close c; + memset(&c, 0, sizeof(c)); c.handle = bo->handle; int ret = drmIoctl(screen->fd, DRM_IOCTL_GEM_CLOSE, &c); if (ret != 0)