Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp535346pxx; Wed, 28 Oct 2020 10:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvDSsQFNyUlnNAdh8gTAysPfIEyrOK02E+xgP+MwvGCSiQEkQYHAI5fuovzQkYTms1zfbf X-Received: by 2002:a17:906:1418:: with SMTP id p24mr186086ejc.46.1603906264830; Wed, 28 Oct 2020 10:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603906264; cv=none; d=google.com; s=arc-20160816; b=bGiAXPKNiOlPsC5nFcConBxrg9PYK7ph0e1EcxT1b0ivS/A8NuE1EKsrUuSbuzlvh1 cLzvFMe+lcxK3qBvrKAEWWnmoJ5lPh5XXD47sziWUNQWGpchWGRNZqByKbuo9swMrCcs i4jWvmivet3684j4aciAQDLQ7WjsOKnjxE25buI/TqP5jy3cvT11HCn0J9Damj0Q+8Iu YZR6TUqOtanRH5oFvndP9j4N1A6J+uN9OhAIAdsNi+0IYdN/WnVzo/5pIBISNcSv6gVs FnQBSPqOE/+9z/RrPC++IcdQRoMKlEzlVtQXOF+DVGO9c8LY/UgD94ICbwgaTHu5sdTf HkqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=70TE2Etg5pFEJy+zX/x+WFVKWMURDxpk16rsyuGunuU=; b=SFm87EwC2lD+I++IKiY5ntYj1Oa63KLj6+dwtB2tptfy9Yr3liIA917bOlB7tTdf7+ X13MJIkortHcU+bNEhxhxhSx+RZr5RT0uXFd6IDUg6Iuy9jgG3pBuMJv2rm/bL7hI5mB PKeBfqbHQLTj4lW5Q/Ii4MI62Tq7zvuxY4LRvXO3/Me5jJmSnVMitIK0UcGrWe2gpt0V zgWu7bMc0qo1yy004UtscRVNnU3akq55eJlXuQLct2TeKbayGrieg8vINXIMepFZ5J4L TxicsxJOwA7MIZ7pFv5ZtPm8xtz3luU61wynXE712gTQvOUKwvAq8xfYnEtAN8tIeISr 7PHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ajqWhf1Q; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si3955588ejq.552.2020.10.28.10.30.42; Wed, 28 Oct 2020 10:31:04 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ajqWhf1Q; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1821430AbgJ0Rnk (ORCPT + 99 others); Tue, 27 Oct 2020 13:43:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:58644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2902257AbgJ0Obt (ORCPT ); Tue, 27 Oct 2020 10:31:49 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F076F22202; Tue, 27 Oct 2020 14:31:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809108; bh=xu4iSECpQizLr/uplQsKlozv/ufx+BymSTjboWPm5o4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ajqWhf1Qd1O+42OsA4279s9dhNx6TwK0rRQ6vaLiTglwxUugDspsnypYfy2EBqSue sEYLuBv5MtKBty2ENVWA09iIypbpVDXyUzjkO7lKaWVVQ7zEFP71l8SURR2sfrbakZ ZRw3b8ZbwJf3mJSdELCvzxKKMYHwd0Gln0ngGny4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Bingbu Cao , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 077/408] media: staging/intel-ipu3: css: Correctly reset some memory Date: Tue, 27 Oct 2020 14:50:15 +0100 Message-Id: <20201027135458.629256056@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 08913a8e458e03f886a1a1154a6501fcb9344c39 ] 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 Reviewed-by: Bingbu Cao Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- 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 4533dacad4beb..ef3b5d07137a1 100644 --- a/drivers/staging/media/ipu3/ipu3-css-params.c +++ b/drivers/staging/media/ipu3/ipu3-css-params.c @@ -161,7 +161,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