summaryrefslogtreecommitdiff
path: root/intel
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-08-12 13:33:05 -0700
committerKenneth Graunke <kenneth@whitecape.org>2012-08-12 20:13:50 -0700
commita9412fa9de219e38df361852a12df37688c891db (patch)
tree52c996d6e2a2fd4dddf39da986435a0c7d139e9d /intel
parent6fa2b29d226306870eebe93afb2106ca7d79569b (diff)
intel: Use VG_CLEAR on the context destroy ioctl as well.
Otherwise pad appears uninitialized and valgrind grumbles. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'intel')
-rw-r--r--intel/intel_bufmgr_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 0ea6260d..79531372 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -2936,6 +2936,8 @@ drm_intel_gem_context_destroy(drm_intel_context *ctx)
if (ctx == NULL)
return;
+ VG_CLEAR(destroy);
+
bufmgr_gem = (drm_intel_bufmgr_gem *)ctx->bufmgr;
destroy.ctx_id = ctx->ctx_id;
ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_CONTEXT_DESTROY,