From: Thomas Wood Subject: [PATCH i-g-t] lib: ensure igt_display_init clears the memory for the display struct Date: Mon, 16 Jun 2014 16:12:21 +0100 Message-ID: <1402931541-29304-1-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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; -- 1.9.3