Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2118lqg; Thu, 29 Feb 2024 17:20:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVAOWtL7LO6MzSO4GbrubFduIuYMeKddiELUQCRxAgnpfNwpLceffY2C1FjuswdpsmaIKRIviNO55hokJfst8NPdqAwfC+JYTrUcipGfQ== X-Google-Smtp-Source: AGHT+IHh1K5VuJ6NCKTTtRgOzGMa6Ux4KFgPKCbvgYtVG6aAmhWYBLWXzGrUD6VS8YQ2BSs6qtAt X-Received: by 2002:a05:6808:1244:b0:3c1:86a6:9e96 with SMTP id o4-20020a056808124400b003c186a69e96mr420688oiv.54.1709256015182; Thu, 29 Feb 2024 17:20:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709256015; cv=pass; d=google.com; s=arc-20160816; b=U1ks7DJvCMZQBCfrQS6+i20Y2V0Dksvgl+LxYY96oXQm2NkTOOZ98LXvTNmbKZke1s fEiN/tAu6veUmZ2o54WdLii5kAAQotFta9Ot7lGmirR/O52Jz38iPeIgsakhDPY4pHsZ IMgrWloD1l3r/rimOTU1wdqGueiD51xhvP+s5HzUfHLCE+POKWQtuZicxEPHdleZDsOj LfiLriLxnAbmaUbvqgHuPfTVXLT0MJOtwA+qpSXVZbSHz+nZrwOALn9pSkTKQEoANwYQ yF73EZ6mwsMunMYgxm+SjisCEED8Gwi7vtDHqAGwQ5/nH5PFHqdxYF6f5DvEo/JJu2lL mKkg== 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=0ETUyHmULsfrkMhIsbC7LtvomnQPjHhF5lhx7L4Th/s=; fh=7XGp2d9p0eQJj/8U8iiNSpVUQDoibDi9TvtUM6Tr/9c=; b=Q2YTRZpN3wFPhuZIU9YpPQq6VpixA3+2xDIY+7CKdu+xhVmSrj04UF6i/lZP9Hqraa h8+XD/EsO33CytdBCDS3fDL+SHhln1XgEmU41iTNkKLIrkPk5HqzhW6w9KEHSqc+Jgfu YXJAB6akeviPZeKtpA2OKObJmT4aCBVl9gE/W77ilpRVuZ22DSjF5tOXf+QUzOrl3A+9 rjI1qA7mzJjgGUZ8CjxzD1DWmAP+M/axUtLmnXaoFDnK09fV08WawJ+1R4G4MCtzhtVl yTykiYW3pbN4h6lHHVVlyHL3Q7Iklh1R+WHgr7b7uACU9a/x6pd4NbXgbQdHEc+GM4iB avSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W6FD/J2v"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87763-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 cj5-20020a056a00298500b006e52d4ed84fsi2461177pfb.222.2024.02.29.17.20.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 17:20:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87763-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="W6FD/J2v"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87763-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 B6029285098 for ; Fri, 1 Mar 2024 01:20:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E189836137; Fri, 1 Mar 2024 01:19:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W6FD/J2v" 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 0E4902EB0A; Fri, 1 Mar 2024 01:19:48 +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=1709255989; cv=none; b=roqcMXlZtlw1UxxQVMMsTMWeTh9S2YcPaGa4iVEKyWNLhVGLtv1kewAyX3TwdErHWUogW5ccIG0xYLl5mCD6dk0R7LtTU/lb7toLS2M3MrSJl+OXcQ8DjDH1t5prgbIoOkiTK0lFOFia53c55hZss91lmldaGTT3wG4c5QUTjls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709255989; c=relaxed/simple; bh=0ETUyHmULsfrkMhIsbC7LtvomnQPjHhF5lhx7L4Th/s=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=ro/IjQbybjAeChRVeyP5wMniyAEn6fNIlAvL9aN5d7qpLF+VZ4Hi3zX9GPh9zqec2scup03l1Hab0Hwg9ULFlV2Jn5vOD1SihfrB86G4ikqFkjRLUNlFuBbvN56p/ugQ8IrA5R7j5e5guB91MwMVebYz1yyJ0c16nWJJa8NRXJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W6FD/J2v; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77396C433C7; Fri, 1 Mar 2024 01:19:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709255988; bh=0ETUyHmULsfrkMhIsbC7LtvomnQPjHhF5lhx7L4Th/s=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=W6FD/J2v+lMWtB/Yi//4ZoOs8rUdLym4uCz+sWmY0J7mc5rgBRCBx5d+JqkJbPzrC gmCZfTNO3j6bgPLF0up3pzp36E5XeMypqEnUPEgJA5MmuSHgNT5jzPKbre4gZ0xhao i/ZdB3Y6eR8pAKk7ZdtOfDVCSolxaZXj4BqVWZRpiKzpTv95z27ItgHHNq9K9shNPZ GekRJ1qBik6wt2L64+Awqrccnb8C1TiO3Z/rOE1fR49XIbZ/IPHYXKmYMwYr/g8BpM 1iCZG5cNzGJm6wLjFEdEQsmUKkPK9b5m1czJu8/AZdYl+c6vIwRDhnx6mXmmohdJPB OFnvBRe6rvlMQ== Message-ID: <6d9fa1b4882d3e4f3367120def16097d.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-6-074334f0905c@gmail.com> References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-6-074334f0905c@gmail.com> Subject: Re: [PATCH 6/7] clk: qcom: mmcc-apq8084: 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:46 -0800 User-Agent: alot/0.10 Quoting Gabor Juhos (2024-02-29 10:07:51) > 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: 2b46cd23a5a2 ("clk: qcom: Add APQ8084 Multimedia Clock Controller = (MMCC) support") > Signed-off-by: Gabor Juhos > --- Reviewed-by: Stephen Boyd