Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1886279pxa; Sun, 23 Aug 2020 21:11:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH9lFHtP/FFYnoPfaY9vFe6NyTTulz7gzt8rt7pfoZy52JY6Z0ECw/aSiFLU1XC//uDRAI X-Received: by 2002:a17:906:7d90:: with SMTP id v16mr3798247ejo.27.1598242305066; Sun, 23 Aug 2020 21:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598242305; cv=none; d=google.com; s=arc-20160816; b=DUSSixg3jsfXJCXmQNJeeb+9a7wLhb5uFoY0lAz9DxRU45xZ5Z5pL6L0DPlnTLhe6y 1poNkcJQgN4DPOEXtNDROXiGc4Vtk0N8pkYokiUgqkfB/1Bkx8d8FijPEZi3jpM0X8qG m2QPxM0P+IDzh4PFy7HUZH2tUCI+Si/nCkMvf551o9JIrgijScftdp0M6O3GqQALHYWH XW34DhzVFFMH1D+prgIu0TfLm6tgAiyHDm+hUxGXUSDtS8peDSDrQ34RcqkJwBFvWHK7 XD4oBPXMPeTj4Of5SU9U57I1KxHQACH8Xabr3+WCHUPLDIArVFaiwlUHXHs/CPvil1E7 wG2w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=+oNJcOwDkhSzq0MZ3YknXOb4vpya9oZnb/a768xqEHk=; b=gzKekCxPzvhITBLOlqN+klXa8o97xuS53vSJbruGTxg8/3Jh9fIV04eGbqnBiJ3eSx Htul5/RDzBDPGFuVnlhI2Yc4KQrGlYKG7o2jHjcD8n/Qf703Wn5eSFLsQK1lWdC9a/ku aNdVchvygC6U5xLBeShUqlAjsnfaroLQllkgJARS/WH29Xlw79LxOapFuL5g0pmtn9j7 dRAgQWb/ItpJyvBhEvu/khZxsxNbP/6EEALGEoZOpgLw1kZEbAixgCGRMIF3OXnu8a+N KXrvN53+VKguKqHzlcNSENt9RQZbI4bON3wZz2gyufrVtvkUI+n7hBcT/6iaWe7cHvMh +gmA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si6073238edx.426.2020.08.23.21.11.08; Sun, 23 Aug 2020 21:11:45 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727050AbgHXD1L (ORCPT + 99 others); Sun, 23 Aug 2020 23:27:11 -0400 Received: from mga05.intel.com ([192.55.52.43]:54060 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726684AbgHXD1L (ORCPT ); Sun, 23 Aug 2020 23:27:11 -0400 IronPort-SDR: SC9BCE1OJp0/5pzzQ+Prs6+hVwRI5Fa3NG8yKmNWiugxIshY2Kd4th9SHLTVxcSLNBP00sjUHF Ag+6NrJmIRBQ== X-IronPort-AV: E=McAfee;i="6000,8403,9722"; a="240652813" X-IronPort-AV: E=Sophos;i="5.76,347,1592895600"; d="scan'208";a="240652813" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2020 20:27:09 -0700 IronPort-SDR: K+fZ6JLXSmksjbeNCGf+l7l5S9udUDS7ZP6MfHpEr3qjEgheL81KEtWSpCouTUfT+vCyrPFruo DQM/5lLAG3UQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,347,1592895600"; d="scan'208";a="322006007" Received: from ipu5-build.bj.intel.com (HELO [10.238.232.196]) ([10.238.232.196]) by fmsmga004.fm.intel.com with ESMTP; 23 Aug 2020 20:27:07 -0700 Subject: Re: [PATCH] media: staging/intel-ipu3: css: Correctly reset some memory To: Christophe JAILLET , 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 References: <20200822131124.157917-1-christophe.jaillet@wanadoo.fr> From: Bingbu Cao Message-ID: <5ae34514-13dc-671f-35a6-75c0343ddd68@linux.intel.com> Date: Mon, 24 Aug 2020 11:26:12 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200822131124.157917-1-christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the patch. On 8/22/20 9:11 PM, Christophe JAILLET wrote: > 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++; > > Reviewed-by: Bingbu Cao -- Best regards, Bingbu Cao