Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1835lqg; Thu, 29 Feb 2024 17:19:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX44cih+wJQIulo2QE+sHaZf2/Qr57djwwFDpsgKnwYIKJBgc7euX6XRLtibHZ9wtUvYErzmn7ELrDRIeNvuE8lmSr4T0OEPxVQdTzFkw== X-Google-Smtp-Source: AGHT+IFw7KPdKvg1MHHSbUWRfh33FxrMwlEfz8Yjm8r+IfDnwu6Q1XnaTB5aMYdYY8dwBfPiaXcF X-Received: by 2002:a05:6830:12c7:b0:6e4:7bbb:f3ae with SMTP id a7-20020a05683012c700b006e47bbbf3aemr470892otq.4.1709255968117; Thu, 29 Feb 2024 17:19:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709255968; cv=pass; d=google.com; s=arc-20160816; b=kZSwrUQ/VkSQPi4fpjWxhzzbCPG6p5AZgd/T5M1rzlUMmEHWLD+UDIx8piPI7jsnIZ SHt0LBmU1uQ3p1ver2jBpG5rdn+jm/1qSc5qhumW0/Uaz6ygnzkRMUCnfQaxhUcp+N3S 88Dw9iq3i79VC+17ODKLnzgZtbVrsg2fkd0tL5/xMxztLmDo+E4K/SKn4DjKWJYFQCKv wilgCyYaLI1BsbuNAbQbnLEVbX5bps4hKUmp/trbnor7EKNyrIvL/ByYI1m27BYsG6iy n5h4GfvWrYmkhTXR/lIKIuceSUWG6i7eDiz9e56ViVtmBg4RXG7MDMKizB26YC6qB55k xO4A== 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=yDHOLE+llrw++hIhn0lONNzhM0FIHeIDdS78CASsC10=; fh=7XGp2d9p0eQJj/8U8iiNSpVUQDoibDi9TvtUM6Tr/9c=; b=YKZtmTtTUbsB4wMWl1elV2+yYEPYDBEuNfjo4SVdUBWJh82rrf9j7D7FWwmD7Dwg1B bY131f/7HNqHNuiJb3f486Y6pSr4pV6+En1aQcHHi0gSxsOFaSGCbcdoQPP5FrJHXqbi xSwLMa8ofsft8YwF45AGY1JIZs28Yg+kE+yTQPi0BVA5KpIys7B68wi16w3+wZDgm/bo kCOdkh1lGEfsyCSlnjE1BldcDPgqk2rYGgcok1pRQK1BsnH/OzQM5vRAYDq+Z5u0wQjf rFN0q895f+627kxTY9w4p/PqswUTP2piC3uQBtdC7h6YzHtTj5DLXSpt3MEghVXewwy0 24NQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p1xnb4kO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87761-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 p18-20020a637f52000000b005d3adb65694si2464022pgn.757.2024.02.29.17.19.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 17:19:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87761-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=pass header.i=@kernel.org header.s=k20201202 header.b=p1xnb4kO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87761-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87761-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BF23F2850D6 for ; Fri, 1 Mar 2024 01:19:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 635412B9DE; Fri, 1 Mar 2024 01:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p1xnb4kO" 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 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