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 85F9B364BC; Fri, 1 Mar 2024 01:19:18 +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=1709255958; cv=none; b=tLdfzpokIIGZVYH0tGW1i2JLZAlFSGpeuNFkINwjdqMmz9WB4bDVVSy96aPEeBNhFHiaMsErJ6MvNJWCMjbeZeK66uFVt+wop+hoGM2qOh3if+KutGvyzckLpbuFW0tnt6CUiOyASY4/wW7TqYUZbGh6Yv6Nk5uLPpG1MTVOVzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709255958; c=relaxed/simple; bh=yDHOLE+llrw++hIhn0lONNzhM0FIHeIDdS78CASsC10=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=G1701OaX9L/m37sTEPX30GbkDvoNiSOZpYFrPQe57cnBZzI9t7RmiG/cSdjYPnObpyX9+ivi1tdFeVJccG037pMjCLt2fRLpIjgina1zkGhy9UH1JO/zaRDxhuQv7S4p31RykF2fU2uORefGv5TM1D30EcVvh670iPAiqqeDXPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p1xnb4kO; 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="p1xnb4kO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 503FAC433F1; Fri, 1 Mar 2024 01:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709255958; bh=yDHOLE+llrw++hIhn0lONNzhM0FIHeIDdS78CASsC10=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=p1xnb4kOYm99rTTpXNDW5+ne6sFTtzX2Jw/1VvsLq/RMNn10+7yw2LIoJYay9Dmn2 1L0CFKCp9Puw9PXbeB7F4oK5EkbYUDLnZfH5wp/GPPvuC0s+UrO3FeUWbHhhcFVAUa 1hit3XwPVC1mrB9RIofg2wx7AA/xpYuFd6Eikzpsg7J3LoYSvQ/49LZYeJkRg+rDkQ YL2AzoHe6SwM69YqZ76t3p6wB68hdBD2QwB2TPR4i0OT3PJOmWuoC3aIbcjjt5zZDm Q/VNFtqYKPjNIN37RttJnX9/Pw2Z2s8uYzUDLrQNNdNFBiiMrzZQgTy9f7lE1QYMNS JreNauwrv6+8w== 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-5-074334f0905c@gmail.com> References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-5-074334f0905c@gmail.com> Subject: Re: [PATCH 5/7] clk: qcom: camcc-sc8280xp: 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:19:16 -0800 User-Agent: alot/0.10 Quoting Gabor Juhos (2024-02-29 10:07:50) > 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: ff93872a9c61 ("clk: qcom: camcc-sc8280xp: Add sc8280xp CAMCC") > Signed-off-by: Gabor Juhos > --- Reviewed-by: Stephen Boyd