Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1164lqg; Thu, 29 Feb 2024 17:17:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXCsXxOox6bqmIMJYNNPPNUwn3iPdpb3M6lkn4OLrnITt/4SO4WQXHU73x8y2YP+3KRDOQ/opAEO9Ut31xdxCWvnp3nI+F+9gTLsfIeyg== X-Google-Smtp-Source: AGHT+IGTo64dUlGELto9mwXcq3Jbbpjr4SiCPYeillbnY8DjCFB4SeKOIQHUbgVWoGVpG9B042D4 X-Received: by 2002:a05:6402:3588:b0:566:93d9:a184 with SMTP id y8-20020a056402358800b0056693d9a184mr608640edc.7.1709255868624; Thu, 29 Feb 2024 17:17:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709255868; cv=pass; d=google.com; s=arc-20160816; b=yFuzIxzrMsyn8yt2VvOBF5vvbZTOKY9eH93b69mx7qn5LtZDMnnmbm1K1x9pZJ+Rqp NRPg4+p/sDgpYj7DmLoFCiS8r3veKGGUAnkd7omBAegAkOZfOyRc/DiAF9fwnG3ppnln ajlnsFjIeWaLsMoAL0zqqWfkIg3tcFxJOYv/iiCLpxXPXAfl9izW2RspzAMNPNdR09hO fygxTKjP+HZYey5NtZxB1zxCepinIbWb/xFOiVBimyFpLk7nNbTWAXor8kCCHcq4ihe+ bzlf+L3WvpRfEcFgLJekPHj3icgiuqw1R96VCn45/jbmtGbHfucHIprvxc69Cs3P+alR iKeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=OxUoV6mwIFKNwTa4l5YJTZcLQY8bJRJdrHpn2V+m+ek=; fh=7XGp2d9p0eQJj/8U8iiNSpVUQDoibDi9TvtUM6Tr/9c=; b=UTIzkqjE7FwPpHdgC33Vm/7CEfQddvxnS3w5fZLRAno7wPvd9hQpUABbw72bE4k7sq tHxadOpWhVrMqlLDKrJG/EYqRxymPsaRb8OuLM+KR+xklT7R0CHGvahmTozPRB2LrcAh CR7TxG+43snDWM7tS+9nCfVjlIu4U1Wpck+p6BjSJPMcIqLikYtqwGhvg96Kmip1ckqc J79c+i3X9yjTqs4agtfYTTMjAj41ioPad2KxtNlTQGVdzgaUG05yhcX4xy40Es12g/uh LJWeAOqbhFAmsb0SGqwbpocmOzY1kyqVU4CFp6iu60REVpofOcOZd+46bXlnnr8nOTnC iJtg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YGuxCeb8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87758-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c7-20020aa7d607000000b0056609691f4dsi993909edr.305.2024.02.29.17.17.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 17:17:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87758-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YGuxCeb8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87758-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 529B41F22724 for ; Fri, 1 Mar 2024 01:17:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F8C42B9DA; Fri, 1 Mar 2024 01:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YGuxCeb8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B15491E891; Fri, 1 Mar 2024 01:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709255856; cv=none; b=iOebQPx2mrtivRUiBCrIe8uTQ9MKdpN1GcIqZif0y29Wol3yiiycBpqEDlKYHCmVYDelkXYbd68dEsQAQ8FCX1Yc8wHEofzINCGCF7bu7/Gu8RReMIeF6w59qwF9/gi3/peQ1fopny4oPL9J8m0SJD6ZC4xb4KXBYqb7jyPs8Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709255856; c=relaxed/simple; bh=OxUoV6mwIFKNwTa4l5YJTZcLQY8bJRJdrHpn2V+m+ek=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=gHCJszYpyTw61vMUFf/3VphhXD19z7QJ+Y6OSNWXNGuO9NtC2OkcDVmisoCivFaiE/xy9jNZVzn6kO+CT5vyQ1oryqwPaIzPyrrLlo8ocZV59VunIwCdAuB3NutiZgtWI3FHvU9p1RFQdFDMkumTsAm9vD6OHCCcLXlztP2FIhk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YGuxCeb8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31B83C43390; Fri, 1 Mar 2024 01:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709255856; bh=OxUoV6mwIFKNwTa4l5YJTZcLQY8bJRJdrHpn2V+m+ek=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=YGuxCeb8J4UOEKVOOWHZMBJQqwlvYvy1x9WJTguwWW1A1C2qWWEu/xAKRDUKAm6WX iLlLuQEMSWPRq7jFA830vE8qI6ZfdHc0Nhk+qYWqzra1NYBEPN0pPzGBQYwz2MALuC uqsrVA+JKfQu23l7cIHZUiq0SpgQoo2DZa3VpA09FcITlnMU8L+QS2PoXb55s9lrTn TKF8zByvgcYY1hYMpDWaJyNYeCwiAMvskAGKFLgaEk5+RS80gZrxOFMGkvkB4M53ou QeS6L9rDxlQADr+U8Z/TH+anKWrnP+Cb6vYQG6nR+VTQWTJfa/zD+jgm7LIjmhckLW 8lUFv1WnRLsrQ== Message-ID: <8a4dc2bae0329d742d8212f59d71d295.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240229-freq-table-terminator-v1-2-074334f0905c@gmail.com> References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-2-074334f0905c@gmail.com> Subject: Re: [PATCH 2/7] clk: qcom: gcc-ipq6018: fix terminating of frequency table arrays From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Gabor Juhos To: Anusha Rao , Bjorn Andersson , Bryan O'Donoghue , Devi Priya , Gabor Juhos , Georgi Djakov , Gokul Sriram Palanisamy , Konrad Dybcio , Michael Turquette , Sricharan Ramabadhran , Varadarajan Narayanan Date: Thu, 29 Feb 2024 17:17:34 -0800 User-Agent: alot/0.10 Quoting Gabor Juhos (2024-02-29 10:07:47) > The frequency table arrays are supposed to be terminated with an > empty element. Add such entry to the end of the arrays where it > is missing in order to avoid possible out-of-bound access when > the table is traversed by functions like qcom_find_freq() or > qcom_find_freq_floor(). >=20 > Only compile tested. >=20 > Fixes: d9db07f088af ("clk: qcom: Add ipq6018 Global Clock Controller supp= ort") > Signed-off-by: Gabor Juhos > --- Reviewed-by: Stephen Boyd