diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2013-11-20 08:32:14 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-11-20 11:55:07 -0800 |
commit | 0c3fd8708fc54b4b46f5db20d34eb29508537b08 (patch) | |
tree | c5ea60ea56c1e2052b9fea5ed7b5058abcb1cfa1 /intel | |
parent | c601444a900d67be7ab84714c2908356de359655 (diff) |
intel: Use memset instead of VG_CLEAR
The ioctl expects that certain fields will be zeroed, so we should allow
the helper function to actually work in non-Valgrind builds.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reported-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'intel')
-rw-r--r-- | intel/intel_bufmgr_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index df6fcec4..c11ed45d 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -3033,7 +3033,7 @@ drm_intel_get_reset_stats(drm_intel_context *ctx, if (ctx == NULL) return -EINVAL; - VG_CLEAR(stats); + memset(&stats, 0, sizeof(stats)); bufmgr_gem = (drm_intel_bufmgr_gem *)ctx->bufmgr; stats.ctx_id = ctx->ctx_id; |