Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1309655imm; Fri, 29 Jun 2018 15:43:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLp185I1CXnTOn0wXVqAWMDJ/iHdaDsl5mdrFAprUIpFRl0frkfPzbzUU0Daxk6VoC+mfv2 X-Received: by 2002:a65:602c:: with SMTP id p12-v6mr14038643pgu.209.1530312212200; Fri, 29 Jun 2018 15:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530312212; cv=none; d=google.com; s=arc-20160816; b=qGL+mk+RwGWmqHFoLOeycj2q1BtlMRu/gky1hRuf3y37x2QMWpojiyPTYLTIkb/iNv sWG0+ePBIswwgRXFevF7XswU0p2HdlvM+t77V/Ffw74Yni4rnfP50DD2piNNrnnH+7wL /7dhgEiFAC6KDd9S0uA63m1NRc6e74x+bzej/fb7HGttUOAWukYTHQaBrVMX0wgwE/jj MDBalmVcweh/IfuY/g7Ek6mh35GnMKtC2TFq/o6pn1EUWi9XNYhgrqkkN22XeJv9pW/P U4uLx4f0PCShzfyazUY+SzMHYU/ZhBwpHrVS8r/zhszuD86CX4arnx42O8yszYKHpki4 SqSA== 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=HdbquAf3UJnOpHeQozKzL6+RK2UQdmaXO4Sbbb6+Prv34IhW46MA9GVeWin1aGlowr u65M0tWFzdjAt9tKVonYrJl8nU1F1y1jFN7VfYI5ABr8maADFIE6A1yyY0UxZEdLdWWZ M3aUfdinB9JZDY9/MhZsT+PqsG7Zk1aBO8x3BG2WlIOsor2nIZ/9W6iKfW4497I120Iq EbeTkAtzIgGLS+h5Fv2Xa6EoZKMcxSI1ISPSTJidMYj2gW1pCCNEcnT52qfeFBX86MLX ko0KUzvB0HQuLLZI+QjxT2jZbNbZzHfq8xrOaUYYCYdZuxFqMAWmqtLe0078kyD6eGBz Nvfw== 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 l4-v6si9843796plt.497.2018.06.29.15.43.17; Fri, 29 Jun 2018 15:43:32 -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 S1030362AbeF2VBk (ORCPT + 99 others); Fri, 29 Jun 2018 17:01:40 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:59148 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936117AbeF2VAL (ORCPT ); Fri, 29 Jun 2018 17:00:11 -0400 Received: by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fZ0Uu-00046f-55; Fri, 29 Jun 2018 23:00:04 +0200 From: "Maciej S. Szmigiero" To: Michael Krufky , Mauro Carvalho Chehab Cc: Andy Walls , linux-kernel , linux-media@vger.kernel.org, Hans Verkuil Subject: [RESEND][PATCH v6 1/6] ivtv: zero-initialize cx25840 platform data Date: Fri, 29 Jun 2018 22:59:58 +0200 Message-Id: <6165cab2bc2db2deb2edc9c0b7ab5e3b1623ac7b.1530305665.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);