From patchwork Wed Apr 9 11:40:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 3954961 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 96ADFBFF02 for ; Wed, 9 Apr 2014 11:41:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CFCF02054D for ; Wed, 9 Apr 2014 11:41:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id CB9142018A for ; Wed, 9 Apr 2014 11:41:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E33F46EB1A; Wed, 9 Apr 2014 04:41:40 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-bk0-f51.google.com (mail-bk0-f51.google.com [209.85.214.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 081466EB2F for ; Wed, 9 Apr 2014 04:41:37 -0700 (PDT) Received: by mail-bk0-f51.google.com with SMTP id 6so2193970bkj.24 for ; Wed, 09 Apr 2014 04:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zPf1md7lULmMQkwOT1oXGaGr7ics5zdUxorJXGp4wcs=; b=aoSKCg7YHIraoM7aYFiGe8TmosCBI+45X/efHG9AzNx7uvwhkKBEMRvYgSDwy/RKuE Il07F2T3frbz2+UeLsWG0AJxBhYDZvhrvapl743BXZ0IMirndOsKyg/UkuacnaAhkulB kavMW9e5wWf08gM7bfn+n3Yjrx+yT/cSe0sp7ZvW4UDNU8cGQFFPQJoTUaRg/RLVpyNO jxEOXpmOJg89KFVxNvBoMRJ+ncvCEWy3p2k0khRXkdhO9ZO1+4trUM7wk67v5dsgYDOM oxSTWcZ0tyoxezecRbW6SmFPSGw0bR7rTuGXyCuyWL2eTqoQL6rukvnLMeX6FfKPaV0V jtSg== X-Received: by 10.205.38.16 with SMTP id tg16mr17484bkb.65.1397043697180; Wed, 09 Apr 2014 04:41:37 -0700 (PDT) Received: from localhost (port-93174.pppoe.wtnet.de. [84.46.76.115]) by mx.google.com with ESMTPSA id z12sm1846693bkm.14.2014.04.09.04.41.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Apr 2014 04:41:36 -0700 (PDT) From: Thierry Reding To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 libdrm 7/7] libdrm: valgrind-clear a few more IOCTL arguments Date: Wed, 9 Apr 2014 13:40:30 +0200 Message-Id: <1397043630-13972-8-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1397043630-13972-1-git-send-email-thierry.reding@gmail.com> References: <1397043630-13972-1-git-send-email-thierry.reding@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding Fixes a few complaints raised by valgrind when running the Tegra tests. Signed-off-by: Thierry Reding --- xf86drmMode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xf86drmMode.c b/xf86drmMode.c index a6bb2ee44576..861248b7c2fc 100644 --- a/xf86drmMode.c +++ b/xf86drmMode.c @@ -282,6 +282,7 @@ int drmModeAddFB2(int fd, uint32_t width, uint32_t height, struct drm_mode_fb_cmd2 f; int ret; + VG_CLEAR(f); f.width = width; f.height = height; f.pixel_format = pixel_format; @@ -309,6 +310,7 @@ drmModeFBPtr drmModeGetFB(int fd, uint32_t buf) struct drm_mode_fb_cmd info; drmModeFBPtr r; + VG_CLEAR(info); info.fb_id = buf; if (drmIoctl(fd, DRM_IOCTL_MODE_GETFB, &info))