Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2354lqg; Thu, 29 Feb 2024 17:20:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXukwrgSUm4hqaEjh+4en6p7RFeYntLb9gO+LfB7Lku+O/ZGDXIdIDTZEoCOUFW2AyCXrVWCoGLHbYE2no4b7ceivjTQncfOkEBkFBAlQ== X-Google-Smtp-Source: AGHT+IEcfygZYkencV4iIPWwLq4TF2Gy62+G1rx2UsFX/dMEQ1Z3Ak94IrOs9km/1k7GwvZ64jpV X-Received: by 2002:a05:6a20:428a:b0:1a0:f5e6:110d with SMTP id o10-20020a056a20428a00b001a0f5e6110dmr150496pzj.7.1709256054778; Thu, 29 Feb 2024 17:20:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709256054; cv=pass; d=google.com; s=arc-20160816; b=lB2mvRKJOEL/hpxrZP6UCYB/bM5z4ZAbsr6Okczjh4OGJ2++vmeaOIPCLU9aTr/uLM 2EgCwD02eQRYvRMsD3C7BZcw2Klmh8luYk4kqm6uIJc1IXUzPlHQD9Fwt2BeCJvIXG3U tBgSG+l3Md2mkyblxv2/zF1rp2V5qavqqNN4VLpYMlgiNsBdhYlKb1c9ieHR68BNMD/B 3Xrj7IZlCLCggVLMNkykcO7qGrDUtiRJf437bZkdb9q+0wovOruqJ8fU7ed4Hv8I6SsO 3b2a7yultjD5icmJXF/9qkeOeZXlr///zsm/fNwLyc93twqOuC5TF6QB/n55ul2JAubo BJ2g== 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=siavMLID54Kqx6FNuwgB9uww5d98GNCLY+aKlPjMbIQ=; fh=7XGp2d9p0eQJj/8U8iiNSpVUQDoibDi9TvtUM6Tr/9c=; b=y/Q5G1hHTQFdqJisxyNt5+2VcgQiUs2jP2oJrUtHnXYkGLwDU1ZMFB+rPMVo2AIj/G /CXKvauFPaMpVolLLJckjimu1feIN97zskL1qpetQGSNh3JmRRMxDmIIOcUPdGfpTA6c SUhRpqFJcLMFP7XLQ7Xa+E+SdS7Es9C3/79wfa1bbTmg1wUSiE0Xdw1qN0Rog4MeRcNM CefHovGFIefzav8cmglqoQ6bd9VpvBJe7NboNVOxQIJb3HlEFQ47PEBVPT4E+T6vX9v1 4VhaHeXmUtWAXHNGnRnbTpuNGI1IuuENpY8cn/GUNWcpoDXcg/Vt4iDZhitpjlJY+qAS rwmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WOxuoQOP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87764-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. [147.75.48.161]) by mx.google.com with ESMTPS id j5-20020a654285000000b005dc892da3cfsi2464920pgp.642.2024.02.29.17.20.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 17:20:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WOxuoQOP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87764-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 80216B22E74 for ; Fri, 1 Mar 2024 01:20:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC0852BAE9; Fri, 1 Mar 2024 01:20:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WOxuoQOP" 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 F361738385; Fri, 1 Mar 2024 01:20: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=1709256017; cv=none; b=VzFdIkT0sC7qm9Hwp+msm92tQ6sjnTF35xPsUTdsRF/6xQORuj4ZS9ndMyxZJeMIQ8Rgvb/PRbvM6MbBgxO3h8zd27EJiRR8q1RTlmYlFrM3LbtY9IC1MZ9uW1u6v5lluHCcypROl4gjZAmTq3xFPZtIwIWwY5keTIvNkvkpkYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709256017; c=relaxed/simple; bh=siavMLID54Kqx6FNuwgB9uww5d98GNCLY+aKlPjMbIQ=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=R/dkuPwIUtCfojk0WDlJDRQw105oPKiazPvcYDHu5x+IkRZTf4UabFGC9TBUlttASVPxAK3A+PsrbfSMwakiWcqqmcbcrWP3z66V6HzZBm6BCF+JlAnZpEJWhxDmafJXRO1AiXhG6EUK8CJrrWwBV0SoaXtQrhcOtIQUvUqbTFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WOxuoQOP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75636C433C7; Fri, 1 Mar 2024 01:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709256016; bh=siavMLID54Kqx6FNuwgB9uww5d98GNCLY+aKlPjMbIQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=WOxuoQOPuMnNnDjrcRquSnzVcdr6BGlkoG2ZMqnl52fZzyGDADGQGr6d6fDmjUlq3 cMVQ7foBCMALaxTktwAda2KuRDSpRvdF6P+F6XQ0CaOcyMxho8CHbs18DCM09G1Ve3 7TwEbS4QLHGkv194A/AmYRUUuimDgJ928BNP9ymGWlwtxG0UugINWoGE56m5hnH11H sDLJOvu3WXgl2XCbrQb6jf/Oo0EZOLyOZBid0gl1dewbzmxvTV4usxO4M8Wcdh9flB Mg5BpuKazqETd0RpmGv8Zvfcj0bXtbyuU107xAR7f4hQCsHvIin3KAHpYXjQa2GFzo Cw4iMV97VycvA== Message-ID: <1b7ccb1a0051e28f67a35ec1fc935e63.sboyd@kernel.org> 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-7-074334f0905c@gmail.com> References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-7-074334f0905c@gmail.com> Subject: Re: [PATCH 7/7] clk: qcom: mmcc-msm8974: 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:20:14 -0800 User-Agent: alot/0.10 Quoting Gabor Juhos (2024-02-29 10:07:52) > 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: d8b212014e69 ("clk: qcom: Add support for MSM8974's multimedia clo= ck controller (MMCC)") > Signed-off-by: Gabor Juhos > --- Reviewed-by: Stephen Boyd