From a9412fa9de219e38df361852a12df37688c891db Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 12 Aug 2012 13:33:05 -0700 Subject: intel: Use VG_CLEAR on the context destroy ioctl as well. Otherwise pad appears uninitialized and valgrind grumbles. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- intel/intel_bufmgr_gem.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intel') 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, -- cgit v1.2.3