From mboxrd@z Thu Jan 1 00:00:00 1970 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 F361738385; Fri, 1 Mar 2024 01:20:16 +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=1709256017; cv=none; b=VzFdIkT0sC7qm9Hwp+msm92tQ6sjnTF35xPsUTdsRF/6xQORuj4ZS9ndMyxZJeMIQ8Rgvb/PRbvM6MbBgxO3h8zd27EJiRR8q1RTlmYlFrM3LbtY9IC1MZ9uW1u6v5lluHCcypROl4gjZAmTq3xFPZtIwIWwY5keTIvNkvkpkYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709256017; c=relaxed/simple; bh=siavMLID54Kqx6FNuwgB9uww5d98GNCLY+aKlPjMbIQ=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=R/dkuPwIUtCfojk0WDlJDRQw105oPKiazPvcYDHu5x+IkRZTf4UabFGC9TBUlttASVPxAK3A+PsrbfSMwakiWcqqmcbcrWP3z66V6HzZBm6BCF+JlAnZpEJWhxDmafJXRO1AiXhG6EUK8CJrrWwBV0SoaXtQrhcOtIQUvUqbTFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WOxuoQOP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WOxuoQOP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75636C433C7; Fri, 1 Mar 2024 01:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709256016; bh=siavMLID54Kqx6FNuwgB9uww5d98GNCLY+aKlPjMbIQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=WOxuoQOPuMnNnDjrcRquSnzVcdr6BGlkoG2ZMqnl52fZzyGDADGQGr6d6fDmjUlq3 cMVQ7foBCMALaxTktwAda2KuRDSpRvdF6P+F6XQ0CaOcyMxho8CHbs18DCM09G1Ve3 7TwEbS4QLHGkv194A/AmYRUUuimDgJ928BNP9ymGWlwtxG0UugINWoGE56m5hnH11H sDLJOvu3WXgl2XCbrQb6jf/Oo0EZOLyOZBid0gl1dewbzmxvTV4usxO4M8Wcdh9flB Mg5BpuKazqETd0RpmGv8Zvfcj0bXtbyuU107xAR7f4hQCsHvIin3KAHpYXjQa2GFzo Cw4iMV97VycvA== Message-ID: <1b7ccb1a0051e28f67a35ec1fc935e63.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-clk@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-7-074334f0905c@gmail.com> References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-7-074334f0905c@gmail.com> Subject: Re: [PATCH 7/7] clk: qcom: mmcc-msm8974: 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:20:14 -0800 User-Agent: alot/0.10 Quoting Gabor Juhos (2024-02-29 10:07:52) > 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: d8b212014e69 ("clk: qcom: Add support for MSM8974's multimedia clo= ck controller (MMCC)") > Signed-off-by: Gabor Juhos > --- Reviewed-by: Stephen Boyd