From patchwork Mon Jun 16 15:12:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 4360041 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CA8349F26E for ; Mon, 16 Jun 2014 15:12:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 130542018B for ; Mon, 16 Jun 2014 15:12:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1306B2017D for ; Mon, 16 Jun 2014 15:12:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 981E36E565; Mon, 16 Jun 2014 08:12:25 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 3D31B6E565 for ; Mon, 16 Jun 2014 08:12:24 -0700 (PDT) Received: by mail-we0-f176.google.com with SMTP id u56so5708798wes.7 for ; Mon, 16 Jun 2014 08:12:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=lnOTZb+T/mnNYshICAYo33BKCg2s1kflFC+LI0H1ygs=; b=FGRbX4xu970vUr2RinWkwGvjEPhP1vRe7AcRk0AXQihEGto7reU/JrLTrwhNYoaGSI 5ihkAqeq3HoGIi/v/bZis7qTXea4gUDugc/uhIn+jtwM/AXygKiZ2zRHiaK56maQi6Te OsHTyDmFYtySB6QgL3L6dlxoOBaZYQ/vOeAGHh0HOdyko5hhqb8xX5adK4Bibxhvf6RD R2GaN6xugXmz5Go7a4SIXJHrb0geYat8YxXDSFwKs0BBLkSQggtEAKZssJD8i1/k3S2i d7/EyCi5PnmdkZRqOsMxIShi01RuKhNuM6AtEHdXEXTJ/iKnKIr2DYRD7mwDbCEUzQeF 9EVA== X-Gm-Message-State: ALoCoQkp0h+5z3iJqRcdGq9AxMlgjeiBJerWQTaz16LnNJUp1RgfiTulS9VKhMJT+P7HLGEG42C0 X-Received: by 10.194.142.205 with SMTP id ry13mr28811551wjb.69.1402931543251; Mon, 16 Jun 2014 08:12:23 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id gd5sm19138277wjb.40.2014.06.16.08.12.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jun 2014 08:12:22 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Mon, 16 Jun 2014 16:12:21 +0100 Message-Id: <1402931541-29304-1-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [Intel-gfx] [PATCH i-g-t] lib: ensure igt_display_init clears the memory for the display struct X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Add the call to memset that was accidentally removed in: commit 1e9e1baba389fe498be12390ceeeacb1d141a5cf Author: Daniel Vetter Date: Thu Mar 13 17:20:05 2014 +0100 lib/igt_kms: rip out custom verbose loggin support Instead just piggy-pack on top of igt_log. Signed-off-by: Daniel Vetter Signed-off-by: Thomas Wood --- lib/igt_kms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index ec1ab38..1d9362d 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -544,6 +544,8 @@ void igt_display_init(igt_display_t *display, int drm_fd) drmModePlaneRes *plane_resources; int i; + memset(display, 0, sizeof(igt_display_t)); + LOG_INDENT(display, "init"); display->drm_fd = drm_fd;