Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp975439pxa; Sat, 22 Aug 2020 06:39:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQKJ4lXy9TVMvuTbU+apkSRTx7KG6AOMvl/wryM6l6WhB/0PvwexvyHbkgemDqfDNH+a9j X-Received: by 2002:a50:fc0e:: with SMTP id i14mr7203206edr.346.1598103593899; Sat, 22 Aug 2020 06:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598103593; cv=none; d=google.com; s=arc-20160816; b=Flj2zDUS++hdCSh4FbJrUfQvLkgFd3ssV+S6c8a5b3o6v7RwP1rzyizUMC2skFY6yc ujapwzuh6uxc3ttzOxYj3Iiyhoe+3bNHM/4rH0bHbKuswRVHh+Uz80YmSQgMsWqZ1G0j ejWxic0u3CdTy7SETozx8QeFcRoqn0xhnbY1NkXkoOgcWpFpDiBzSIptA0gdwCdmbhw3 PDNk6ofDb8wNMJt6fjAG28RMyOsQvJMY3FU3UTtQTfBjNfBp4zCcdHCQqmOoKWX6MjbJ VtM5j4X70BxawAUzugzyUL1ruvLCmVnKhQPFsr9G3+bA1Z9BAtXwAxGJX8c69OEE+RvN WRIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=O/03WfCshZppDe5zOC/h0cmRI0IVIKXMLT9WgSw/tKw=; b=bbCCgTtComYyaox6pxRPGZ+vG2iLwP+IVGqgMKK3NoTTYvITK/qEQegDzb7JsRZrh0 tPK7OL3rXfto6bJn+oGZH5RV/H39QEzWCBFDyTxLwOMga9U8SvBMNc/+xY92fWE+twnP /QrhIWrs8vXOa33DkoIkgwHfvRpAi7N+Bh7WbgYz8zqLqtj0dGidEFm9CRLB6AL+hp4R +MCBxImtq65eTW+6rOPDP12uxG4WhiCKSPmhnttgOImIchht+p5Vt2P+Ceeg5FL2Uu42 nl4MiDKe7yNg9YZBchg4uO3nQ8n5rUey6zV4FMZiREKCttUEJGWbtmVqdtDkWFRAIdaT In6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl11si3552743ejb.519.2020.08.22.06.39.15; Sat, 22 Aug 2020 06:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728036AbgHVNLq (ORCPT + 99 others); Sat, 22 Aug 2020 09:11:46 -0400 Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:43812 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727827AbgHVNLp (ORCPT ); Sat, 22 Aug 2020 09:11:45 -0400 Received: from localhost.localdomain ([92.140.170.113]) by mwinf5d17 with ME id JdBT230072T8iuL03dBYex; Sat, 22 Aug 2020 15:11:43 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 22 Aug 2020 15:11:43 +0200 X-ME-IP: 92.140.170.113 From: Christophe JAILLET To: sakari.ailus@linux.intel.com, bingbu.cao@intel.com, tian.shu.qiu@intel.com, mchehab@kernel.org, gregkh@linuxfoundation.org, yong.zhi@intel.com Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] media: staging/intel-ipu3: css: Correctly reset some memory Date: Sat, 22 Aug 2020 15:11:24 +0200 Message-Id: <20200822131124.157917-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The intent here is to reset the whole 'scaler_coeffs_luma' array, not just the first element. Fixes: e11110a5b744 ("media: staging/intel-ipu3: css: Compute and program ccs") Signed-off-by: Christophe JAILLET --- drivers/staging/media/ipu3/ipu3-css-params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/ipu3/ipu3-css-params.c b/drivers/staging/media/ipu3/ipu3-css-params.c index fbd53d7c097c..e9d6bd9e9332 100644 --- a/drivers/staging/media/ipu3/ipu3-css-params.c +++ b/drivers/staging/media/ipu3/ipu3-css-params.c @@ -159,7 +159,7 @@ imgu_css_scaler_calc(u32 input_width, u32 input_height, u32 target_width, memset(&cfg->scaler_coeffs_chroma, 0, sizeof(cfg->scaler_coeffs_chroma)); - memset(&cfg->scaler_coeffs_luma, 0, sizeof(*cfg->scaler_coeffs_luma)); + memset(&cfg->scaler_coeffs_luma, 0, sizeof(cfg->scaler_coeffs_luma)); do { phase_step_correction++; -- 2.25.1