Skip to contentSkip to conversation

intel: Quiet two more valgrind complaints with recent changes.

PATCH New Eric Anholt 1 participant 1 message Mar 13, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel: Quiet two more valgrind complaints with recent changes.

These are more cases where valgrind doesn't understand what gets read or written by our ioctls.

---
 intel/intel_bufmgr_gem.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
intel/intel_bufmgr_gem.c +2 -0
index 51b963f..3c91090 100644
@@ -2647,6 +2647,7 @@ get_pci_device_id(drm_intel_bufmgr_gem *bufmgr_gem)
 		}
 	}
 
+	VG_CLEAR(devid);
 	VG_CLEAR(gp);
 	gp.param = I915_PARAM_CHIPSET_ID;
 	gp.value = &devid;
@@ -2790,6 +2791,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
 		bufmgr_gem->gtt_size -= 256*1024*1024;
 	}
 
+	VG_CLEAR(gp);
 	gp.value = &tmp;
 
 	gp.param = I915_PARAM_HAS_EXECBUF2;
Signature · 1 line
1.7.9.1