Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1457lqg; Thu, 29 Feb 2024 17:18:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXt5f4Z1GwJyJrxjL0GR7H8kKbftL2cf9FqSbzk5sYiVogiholCh6RagLNY+V9xtLI5L71YVUPHQhJe+bZbbHK5sJyNscGCgRayzQa+mg== X-Google-Smtp-Source: AGHT+IHbd5hQdmcFO7BYJDnaq0OdVb5vTz7bHgc7Buhba8wwLBh67WuX+8tgyEfgq59ok4MODfIa X-Received: by 2002:a05:6a20:914e:b0:1a1:1935:26d3 with SMTP id x14-20020a056a20914e00b001a1193526d3mr139903pzc.30.1709255913390; Thu, 29 Feb 2024 17:18:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709255913; cv=pass; d=google.com; s=arc-20160816; b=XOCdrkUBRMkxXr8jOyAl/t8s1T5+cjS8do/MYO7CwiwuvEsyv2Y4YU1BpQcODdEPDU Bz+Gis+XY1nxFSz3MHwXammn040TKSLMRroGgvsYrvXO/+g9ZgltRMvIVaVM/moCurtS ZI/GrRvG4KBgYJww5nxNfmOJakRmzYl38HkcKF9YM9kreL7luA4Gca5atkG/Go3lxvcE kfEBi0VZJH6M6dG2gybQeEhUQCXBHjHG3vb4OwaLv8bmL/Vu1RSw85g9ajvCEwhZP+v3 J7hASNXkV5z2YqpKRkr1G//bDb/MyJDObQ2+TGBBKyStaOMgSb+MYvNgFkyLIjkGky6L vbBQ== 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=dwr1VScL2FXk54am+5mIdK03WNHtPs+GCc9zQTQjWRM=; fh=7XGp2d9p0eQJj/8U8iiNSpVUQDoibDi9TvtUM6Tr/9c=; b=uyqm4uozVU3pg/RWROpwhFT500rpATkUD1WJ0ldpvbuq5VZaB+UAUzMkSMs9/8lKkB VW7W/fbOFYOdPkWn3yum/utzBXoSyOSOzqpG6cfp8dg08kv/wNXZ0zibxjy7QWZmqMBK sjTKfc5vAYb51fqxVIWglaT+SbbCHDGL9LtrioaGiQpnCvtPpPrBmSxdA5yWGVp/ewoi NsgwbbwOQk1JxazyDNvL0NRVIGgaYx/NUUpNHuhhdTmcHb4Ota0Y/rC45YR+nUdp1b3j i1LJqXLwDbxrvTlDjyT4QPo0FBUYJiOGGmDvem8+Sh7OoxTpcZIDU6VLeL+1gQbCW9Ww QYow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FrxbYPnt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87759-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i6-20020a170902eb4600b001da2c0201besi2304151pli.139.2024.02.29.17.18.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 17:18:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87759-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FrxbYPnt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87759-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87759-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9F87FB22F16 for ; Fri, 1 Mar 2024 01:18:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 165B02E40E; Fri, 1 Mar 2024 01:18:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FrxbYPnt" 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 17F142B9CE; Fri, 1 Mar 2024 01:18: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=1709255897; cv=none; b=QypGibWiz8aiPVSnSXMIKih7GY/5CqcXYuftkAS1GZPZZhmvROHSKEtmSYSNB3w0D5Y/ForzyKRnriri7tbUlWFHjFODjzkXB/5sttraNgGwOrQZ7QS6iYz5bF3EkXDztNBx9DsNy2drOcPk8aZGtrYq/bAticOZHxWgl+gjHEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709255897; c=relaxed/simple; bh=dwr1VScL2FXk54am+5mIdK03WNHtPs+GCc9zQTQjWRM=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=iD1kKtJA+hJphtE8cS/pGChW4rgVmTAxS5rYc99JEiPEug1GKrk+kc2Nmayx6LdHAGzRkXk5+8f/DMtMXMvG6Ah4Ox/cAjuCmhH2f7tjqZNTmFl12331Sy13/KVleWmSmlZRCu9nDTLINxNEabz93ZdS/YBxE/YW6T56AltfXRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FrxbYPnt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A331C433F1; Fri, 1 Mar 2024 01:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709255896; bh=dwr1VScL2FXk54am+5mIdK03WNHtPs+GCc9zQTQjWRM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=FrxbYPntvgvqdbylcMzTGJ79x0It5aXV8DC6RcIYaTc2gnRfVX9hh/T4K/WLHH7ah OGDfH7GI54JXtdUKKWvNd86+fjY89LTrFpzY48LLoNp9ZNV/TG3d3tSm5nfi7CL6Za YY/9Ql/+VOflMXUVdlXZO7OFXLoc30EuYCJ2VuP8pq0n1VEkwafT7+aA3TCN9fRcMG WO/HdXx/1NDqXIKHlQvvTIrm2N1k45jAa2XowF5zUVcgLtKJombv9ICCP03Y3DA6XK VsZm/VCFomFaRfrnYlG+ZrpUhgoQrR+B2qaixz7c40vIiMeY+8HDaNNHG/kL7Xus1H QGf/aE+3wA7Qw== 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-3-074334f0905c@gmail.com> References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-3-074334f0905c@gmail.com> Subject: Re: [PATCH 3/7] clk: qcom: gcc-ipq8074: 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:14 -0800 User-Agent: alot/0.10 Quoting Gabor Juhos (2024-02-29 10:07:48) > 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: 9607f6224b39 ("clk: qcom: ipq8074: add PCIE, USB and SDCC clocks") > Signed-off-by: Gabor Juhos > --- Reviewed-by: Stephen Boyd