[Intel-gfx] [PATCH] intel: Quiet valgrind warnings in context creation.

Eric Anholt eric at anholt.net
Thu Jul 26 19:06:56 CEST 2012


---
 intel/intel_bufmgr_gem.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 57319fb..22f3cba 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -2848,6 +2848,7 @@ drm_intel_gem_context_create(drm_intel_bufmgr *bufmgr)
 	drm_intel_context *context = NULL;
 	int ret;
 
+	VG_CLEAR(create);
 	ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_CONTEXT_CREATE, &create);
 	if (ret != 0) {
 		DBG("DRM_IOCTL_I915_GEM_CONTEXT_CREATE failed: %s\n",
-- 
1.7.10.4




More information about the Intel-gfx mailing list