From patchwork Sun Aug 12 20:37:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenneth Graunke X-Patchwork-Id: 1310141 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 03E5FDF280 for ; Sun, 12 Aug 2012 20:38:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D3AE49F68A for ; Sun, 12 Aug 2012 13:38:22 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from homiemail-a4.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by gabe.freedesktop.org (Postfix) with ESMTP id B46409F64E for ; Sun, 12 Aug 2012 13:37:52 -0700 (PDT) Received: from homiemail-a4.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTP id 2427B51C070; Sun, 12 Aug 2012 13:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=whitecape.org; h=from:to :cc:subject:date:message-id; s=whitecape.org; bh=xTbxutsfitPbXaW pMbQP5YG0VdM=; b=T2BTCjSM4x68Ur4frv7biApzpJbyx0vd5giiaBnUAdU0W5k WzgyKyyAuqz0yRbZ9fEqWEB0KLM2gQW7jzWXigIPnUogldlpBryzc+i6dz/GNQmC BiwfXFgZ+enQGjfMysyfYikcPMLplyomfELVAXdCHuO9oTGDl1Qfl+3yBDh8= Received: from tali.shinigami (static-50-43-39-0.bvtn.or.frontiernet.net [50.43.39.0]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kenneth@whitecape.org) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTPSA id ABB5151C063; Sun, 12 Aug 2012 13:37:51 -0700 (PDT) From: Kenneth Graunke To: intel-gfx@lists.freedesktop.org Date: Sun, 12 Aug 2012 13:37:53 -0700 Message-Id: <1344803873-2526-1-git-send-email-kenneth@whitecape.org> X-Mailer: git-send-email 1.7.11.4 Subject: [Intel-gfx] [PATCH] intel: Use VG_CLEAR on the context destroy ioctl as well. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org 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(+) diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index a170813..795c1a8 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,