diff options
author | Eric Anholt <eric@anholt.net> | 2014-08-22 16:36:29 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-08-23 16:30:34 -0700 |
commit | 9542e682078a1b2e65f6b62a8db58f25cff18078 (patch) | |
tree | ed2a046365944505ff1f35335c1937c44aafbc2d | |
parent | c2867f5b3626157379ef0d4d5bcaf5180ca0ec1f (diff) | |
download | external_mesa3d-9542e682078a1b2e65f6b62a8db58f25cff18078.zip external_mesa3d-9542e682078a1b2e65f6b62a8db58f25cff18078.tar.gz external_mesa3d-9542e682078a1b2e65f6b62a8db58f25cff18078.tar.bz2 |
vc4: Clear padding of ioctl arguments.
Fixes valgrind complaints from valgrind being unaware of our ioctls.
-rw-r--r-- | src/gallium/drivers/vc4/vc4_bufmgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index 6d622c0..7664d86 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) |