Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1535lqg; Thu, 29 Feb 2024 17:18:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+g1xokROhFM1kWtIvVTclR9di1Mtuze1JOZ3wXxda7AUQnDbHTCV0w7053Ft2OHTPo4JeVMCuWlhz7PcVuBzd8hhm1E30lZLSGpgffA== X-Google-Smtp-Source: AGHT+IGbI+DD6m/aJ9G7IeXunJ8ZnEPLpHRAYtvlRJv5X6g1Owd60apgSHB6XPRy+0XuOakh/4a0 X-Received: by 2002:a17:90a:d514:b0:299:782e:25b0 with SMTP id t20-20020a17090ad51400b00299782e25b0mr310195pju.8.1709255924508; Thu, 29 Feb 2024 17:18:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709255924; cv=pass; d=google.com; s=arc-20160816; b=ARe1ps9FJM1hPDPia5yYVBWouOltKbzuGWr9NOx8/3gXDy6RbAZ1Jkdfkhh2FHhBVi ld0Jci5mrZCYqFf2/7rEWELvGa1rLer5SU9zrkigdgX8EFPA8DtddP75iq37C+k+fCk1 51qkHrRAbV6LUILiE6WnvuO9jAPk7rifHa6LR+4P/H4SeMVSqL9Odljxaa6iCsTXsX/R +tfVqzYk93EaXdqGdCxSd+JKRWuH9H0hHVIsWVCRnK3Lo0QFT8+Td95UhEkrjHBgzJ/W vz3LV9LfdYxkquBKQPY7AMZWHZh1n1KwbFNUL4HTAW8gBD5jcE/68geM8T4ebG2rjqEP ioEw== 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=0iBUDhtwMEo0O+9wKFS0kyakW3dZ/E2QyQ7ooDjFpbQ=; fh=7XGp2d9p0eQJj/8U8iiNSpVUQDoibDi9TvtUM6Tr/9c=; b=tdls8qFSm0yeWaueJ7hckWZk06h8Ys57b1VexTISVZaX4HMDwpC7ZAzP9NDZ+9uEjp 8+wAEpY/TPcqnGWhxMQSZyT0OXoiky7fH0sLNLjYz8z5+JHPnkzpi7shPN239znILrTR eKfInCOCYfiTM5gjUEOzImKW6DI/cbAmKP0CEP3QNq+lHza//i40HE+m3gFwdZRRNK5U CT1JXQBkSCd+6tYyPL+D3Gag9zBKS6nyzIhcMYJ3IbFE3F8pZbxbva90dn4cUA2Dg3DO /a5huDAFY5ZEGnrbNC9C2/QCwsL4OqOvZBFVJqYCJnGczaom2ecRZ88fQTJC6FQaw8Bj treA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bZFknf+J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87760-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q20-20020a635054000000b005dc85b86649si2449088pgl.686.2024.02.29.17.18.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 17:18:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bZFknf+J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87760-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 3435D285075 for ; Fri, 1 Mar 2024 01:18:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EA862BAE9; Fri, 1 Mar 2024 01:18:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bZFknf+J" 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 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