Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp798959rdb; Sat, 6 Jan 2024 09:28:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9aaE7nzaPyUpEaKtN543Mec5vVy1DcPl0FA50wi9Sr/LMGGY2ri0COJL3dFR/769jgA8M X-Received: by 2002:a05:6358:63aa:b0:174:b348:3a96 with SMTP id k42-20020a05635863aa00b00174b3483a96mr1476375rwh.20.1704562133908; Sat, 06 Jan 2024 09:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704562133; cv=none; d=google.com; s=arc-20160816; b=iBU+QAdwQ63MP9vICIRFrPnudhjs4KGXwvVJkSDA1+Z8u58pCqcP9tWG6DLGKo/Knr h9SYMplh2JQcsKWYNOuq6imUnHhqEoASzlXtrm32T5pv1wmzHo5OPjjaEs/yFN19G65S ezJ1ezFklsYVDeTyz/115KlIpzECOkmrQndWkGAFUoQig0w36ULEGbquLN1MkJFVzEFD 3dptev238LUk0d+oDguYKn+PPN6TFij0V8ErYUtz9Cd6R698s4boSh/gwhR10BiUUdKp n/RnxaWYisxTG+HyzUbczHp78pNUanoW+nuOiNbcHUE1wApB/XBxBUoVE2v4ewQFC9oY yMOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=jqbX15IrQLQ95FamULlsdlZsBzcnY9l7VxFlPvs2xck=; fh=QbBJ8pxPNRWVykazqiOgE/MjCNojWw21Ehgopvp8KAs=; b=0o9rLHr83M0eRm62fYlALyqyKPyF6HgtdqCE0jBvuCkCc/6i8SHNVMH6IlyZ6F5bia /jQQVDz0TfpeMKzHwsY5Hd43Ex1BYFEnitwpwgQGYRqjv/oxrnKbjLpS0DcXnkZvzKTL lo0eOgoh2UsYtMK39C67re5EaJuhsQD28PeaAqKWF4sk+lznmkbKAJFUyc39dqfrZfl3 JqCpVHyx1+FlZCCXVxdcI+DqWv/K0KJ3P3LJriWwabEhVrRRaxShY4r34U8QrurEEz+Z 3/wG1tbOmVw6stzoaa9MRv5K38mRC8Uu8DXzPz3QeOoFW52TAvt9bqycu6L/yZb5kMEJ W5yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=gowa6Gk2; spf=pass (google.com: domain of linux-kernel+bounces-18676-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18676-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k3-20020a170902c40300b001d3dbb38f84si3296137plk.449.2024.01.06.09.28.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 09:28:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18676-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=gowa6Gk2; spf=pass (google.com: domain of linux-kernel+bounces-18676-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18676-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8339B283CD0 for ; Sat, 6 Jan 2024 17:28:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D546C150; Sat, 6 Jan 2024 17:28:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b="gowa6Gk2" X-Original-To: linux-kernel@vger.kernel.org Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE7E4C155 for ; Sat, 6 Jan 2024 17:28:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedor.com Received: from eig-obgw-5008a.ext.cloudfilter.net ([10.0.29.246]) by cmsmtp with ESMTPS id M0h6rKRFWMVQiMATMrTEu4; Sat, 06 Jan 2024 17:28:37 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id MATLrHrrBL3AmMATMrNNYV; Sat, 06 Jan 2024 17:28:36 +0000 X-Authority-Analysis: v=2.4 cv=Sdrky9du c=1 sm=1 tr=0 ts=65998dc4 a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=GfQleyYEO+cc22AUyTT7qQ==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10 a=dEuoMetlWLkA:10 a=wYkD_t78qR0A:10 a=NEAV23lmAAAA:8 a=7YfXLusrAAAA:8 a=VwQbUJbxAAAA:8 a=3gf6MFcAdpgbip9PbcIA:9 a=QEXdDO2ut3YA:10 a=SLz71HocmBbuEhFRYD3r:22 a=AjGcO6oz07-iQ99wixmX:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jqbX15IrQLQ95FamULlsdlZsBzcnY9l7VxFlPvs2xck=; b=gowa6Gk2iiQNWan/JlPXQpunW0 JPEGeHxCpmxiNUaJFG1hrEEL/H+UHDClk6YUK04blgYe6y3ls55iWqSbiOjE8jM+nsH8lmDf64A2B EU/Bptw8Qn09Itv9E2lA9R2z4zzu55/jNPz4VvpdMqLMKj5jK1uHylWgtlReif2G0u6BkJNAfWTw5 u05V4MCK5ymyXYbnrnEN+plo/imTUq4UBGloGM2TL5Zde9Yjt5yiwK/mv5xWLkwtITAo6XovpAElG F9Nm1KHOze/dLMH9zkk6qf0qrU1kDjWntuijVFA7aUEc7rz4VlwW2vVAKJ3A3B+TS7e2egImVjxqB cu2xrHAQ==; Received: from 187.184.157.186.cable.dyn.cableonline.com.mx ([187.184.157.186]:54571 helo=[192.168.0.10]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1rMATK-002YaE-2e; Sat, 06 Jan 2024 11:28:34 -0600 Message-ID: <1b3c3242-d239-465b-990c-33680291ec46@embeddedor.com> Date: Sat, 6 Jan 2024 11:28:32 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ASoC: ti: Use devm_kcalloc() instead of devm_kzalloc() Content-Language: en-US To: Erick Archer , Peter Ujfalusi , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Gustavo A. R. Silva" Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20240106162752.18599-1-erick.archer@gmx.com> From: "Gustavo A. R. Silva" In-Reply-To: <20240106162752.18599-1-erick.archer@gmx.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.184.157.186 X-Source-L: No X-Exim-ID: 1rMATK-002YaE-2e X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 187.184.157.186.cable.dyn.cableonline.com.mx ([192.168.0.10]) [187.184.157.186]:54571 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 2 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJtVS0HgrI4+urFYcvB0m+vfIk+4Dqaf7O6BepgwUVG1w8CCgj3XAVldYUTijfTNLoDSsPvBKDypzSxinFhtGemKWsk6TWSj39A+sm8AvlQpvkKGrBMv +zQGIz8RKym/EPcmNj00k96acxengER3eYl9Ub9t8cKdaXhfyEqMXINgvKN69WmMsxRX+8pf6eyslqoS/92K9iUF0ss1fSw6kMFZ4uXK8+PGtMZ0gDk9Cj21 On 1/6/24 10:27, Erick Archer wrote: > Use 2-factor multiplication argument form devm_kcalloc() instead > of devm_kzalloc(). > > Link: https://github.com/KSPP/linux/issues/162 > Signed-off-by: Erick Archer Reviewed-by: Gustavo A. R. Silva Thanks! -- Gustavo > --- > sound/soc/ti/j721e-evm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/ti/j721e-evm.c b/sound/soc/ti/j721e-evm.c > index b4b158dc736e..d9d1e021f5b2 100644 > --- a/sound/soc/ti/j721e-evm.c > +++ b/sound/soc/ti/j721e-evm.c > @@ -649,7 +649,7 @@ static int j721e_soc_probe_cpb(struct j721e_priv *priv, int *link_idx, > * Link 2: McASP10 <- pcm3168a_1 ADC > */ > comp_count = 6; > - compnent = devm_kzalloc(priv->dev, comp_count * sizeof(*compnent), > + compnent = devm_kcalloc(priv->dev, comp_count, sizeof(*compnent), > GFP_KERNEL); > if (!compnent) { > ret = -ENOMEM; > @@ -763,7 +763,7 @@ static int j721e_soc_probe_ivi(struct j721e_priv *priv, int *link_idx, > * \ pcm3168a_b ADC > */ > comp_count = 8; > - compnent = devm_kzalloc(priv->dev, comp_count * sizeof(*compnent), > + compnent = devm_kcalloc(priv->dev, comp_count, sizeof(*compnent), > GFP_KERNEL); > if (!compnent) { > ret = -ENOMEM; > -- > 2.25.1 > >