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 73B13C13F; Fri, 1 Mar 2024 01:18:38 +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=1709255918; cv=none; b=SmJ9ntktFnUAkWUnu5h0O/oCVbYeWkbNTZh/53347SZt4W28/Mi0zK5eJvTCzWAKUgcqNRfSeBAgkhvipKlUDgbd1tSYBWrsrV1KQ/H5N9NntitdoNMtKPZ/Sh+47OiJArD1uwDgar+SSV3Yx8KHIO2H3MqI1mfASSURgTKvsPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709255918; c=relaxed/simple; bh=0iBUDhtwMEo0O+9wKFS0kyakW3dZ/E2QyQ7ooDjFpbQ=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=FR8kmak5oDAJFHTsLoWU500zwaqqHucF/Mv2X1D0ZnHrUfrj2EylTk+DsuQdE4t+fkocE1HFouzUE7fRq0NJ/Ds9EeV3dBG0vQ7eL3jtHWEqCbyflyMe/WchbhnbAjt1e1fhrTUkMSgEVt0IO1Cc3A2eROXQLw6TMPF4ZmYq8XA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bZFknf+J; 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="bZFknf+J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD364C433C7; Fri, 1 Mar 2024 01:18:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709255918; bh=0iBUDhtwMEo0O+9wKFS0kyakW3dZ/E2QyQ7ooDjFpbQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=bZFknf+Jwz6jkBWfYmf5Y2+bv/GeQtEAa6NMjAZnXxyLfSA86IvebXkW4rkaXzfhL jFf/MF8Y+Z9hUQF9lAxGWJ57prDwDkKh0qbjo6LkDaKGaShN94nnJKPYjhWz15dR7R t8LooijnGardfbe60wK/AifGeY9VEu+Dkz4JntFxkxFTQcbZ68OwWN9WLvqoc/2IkD sivJLzyiP6ERsEBmFVPjKEadvvZg2UPXQ/8biFmQtdlgegpwQ9KKtFLBvsrKe2ccl7 2p+1zSFZtcEV/400eN4C2jPbifGPLuFickJVcj06HM/fTchysHGoPt/JP/auTB6esA IJysrQ9qmbGcg== Message-ID: 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-4-074334f0905c@gmail.com> References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-4-074334f0905c@gmail.com> Subject: Re: [PATCH 4/7] clk: qcom: gcc-ipq9574: 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:18:35 -0800 User-Agent: alot/0.10 Quoting Gabor Juhos (2024-02-29 10:07:49) > 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: d75b82cff488 ("clk: qcom: Add Global Clock Controller driver for I= PQ9574") > Signed-off-by: Gabor Juhos > --- Reviewed-by: Stephen Boyd