Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp432482imm; Mon, 2 Jul 2018 14:25:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJyQAvu+f8YCkcCOvHIgM7ZmS1jgbxpebuGN3NMeivaNbVnzqxjNO4kH1XpUkgeIeq6eAqb X-Received: by 2002:a63:9d87:: with SMTP id i129-v6mr22337834pgd.395.1530566729818; Mon, 02 Jul 2018 14:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530566729; cv=none; d=google.com; s=arc-20160816; b=lR8j/Gz6n78pMT/zd1e7rhDke4YRJD3pSQ2EJkIHb3rdWPV5Mef9260pHqHKrSYGNa jeCprKqxc5RZg84VjS9nyMKLdE9tqIYssth6FWsDJ/0mLqqboRi+2BgZ7vwz2+t0HI7p mPjikNxtWx8A7fAU9lER5o6wcd9Tv6r00BIadSALEaLOaGlw7omi0miBybc1gnencYAh VZ8ye3WcBJ26E/R1ZcAvS5klj5zxMDjQRhpI4fZgFlSiwcSR3XYkAsmdtpetgzoZw2Pq 22aJax9dZ9xoqPnhiPKfM7fMrKMjRhyoACaP22aLGT5RAXCcat0miglwpuCs6Zpf06g2 9Zdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=CWg8DDTwm2zTy+Ee+md4WtVZlaY9M7CaAw0dhgjWqhw=; b=JUURWDxWQtR0eXZaWd9/dvR+MZT4bbfokfwx2kex4DxdJfJBQG1I9lBHNXmX3obT9j IzNo1rhh1NUOMY8fS2FWpauSr37VYYBneKrQW498B2sZW+DyYucMjIdwvDhiLxc+65x+ gwKsihg+kEOyJZ8TdcuYfDWxe0ixhNYVSStuq9Tvv1R2PWdv/Bq+JNPF/j2TS+suaAYc 5XFtuBMS2oPkE8bjN+lnsLqzm3kz+pxwIGFcLvfy4aTrNBBX/NzEdCejYVqnFpAkdSxw A7fm+yZrek5feuzAoGdAr5Xx8GCPEkGpkCRHNK9gri7AUWOhFNTs3ZjK/qz8ScpK0juc g/ZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6-v6si8714778pfa.217.2018.07.02.14.25.15; Mon, 02 Jul 2018 14:25:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753002AbeGBVXh (ORCPT + 99 others); Mon, 2 Jul 2018 17:23:37 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:41392 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753215AbeGBVXc (ORCPT ); Mon, 2 Jul 2018 17:23:32 -0400 Received: by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fa6IB-00076p-9P; Mon, 02 Jul 2018 23:23:27 +0200 From: "Maciej S. Szmigiero" To: Michael Krufky , Mauro Carvalho Chehab Cc: Andy Walls , linux-kernel , linux-media@vger.kernel.org, Hans Verkuil Subject: [PATCH v7 1/6] ivtv: zero-initialize cx25840 platform data Date: Mon, 2 Jul 2018 23:23:21 +0200 Message-Id: <6165cab2bc2db2deb2edc9c0b7ab5e3b1623ac7b.1530565770.git.mail@maciej.szmigiero.name> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need to zero-initialize cx25840 platform data structure to make sure that its future members do not contain random stack garbage. Signed-off-by: Maciej S. Szmigiero --- drivers/media/pci/ivtv/ivtv-i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/ivtv/ivtv-i2c.c b/drivers/media/pci/ivtv/ivtv-i2c.c index 522cd111e399..e9ce54dd5e01 100644 --- a/drivers/media/pci/ivtv/ivtv-i2c.c +++ b/drivers/media/pci/ivtv/ivtv-i2c.c @@ -293,6 +293,7 @@ int ivtv_i2c_register(struct ivtv *itv, unsigned idx) .platform_data = &pdata, }; + memset(&pdata, 0, sizeof(pdata)); pdata.pvr150_workaround = itv->pvr150_workaround; sd = v4l2_i2c_new_subdev_board(&itv->v4l2_dev, adap, &cx25840_info, NULL);