Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp912lqg; Thu, 29 Feb 2024 17:17:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV0sZ6iiRTNHd/a+6eeiXlUvK8TNwqHYqDQaQMPOxbTyoUeeTQ6838k2LekyJ89xJjcMiuQRvJwgLWPC2p5WRhBvRCeM+T3TeRxcolOmA== X-Google-Smtp-Source: AGHT+IH1lWZJPjt/nMHCqijcZzHUfReUXGb01m3q+3zvy/0vG3tpjjiJlgP7+LU6tDhYBPcblbtt X-Received: by 2002:a17:90a:d344:b0:29a:8398:b0d6 with SMTP id i4-20020a17090ad34400b0029a8398b0d6mr349007pjx.9.1709255831526; Thu, 29 Feb 2024 17:17:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709255831; cv=pass; d=google.com; s=arc-20160816; b=PxSOGdSzbyF4XJchnLLjy32OcBcAANgoDb/WWUDKlZpKalEqg09TPDCyGPYrHa4BWd CA9uwRjk/53Bdl32UCQCo1tGhQdnz+Vt8HfCnRShhG3TzZuHSbBFfn2sO/P2bV5DP0oy WOmzAAVT0KpD+dQTxuv/jW/o/XS9mgGLJK4mh1oJJShHIgDNHP4M8396SNw6Dy6+k6wp 9m4chr+TeoSJhNpl86qg4mICaMkbJRTfkQghLYujeWLJJk422ZnPoCRYbk4Tf0Am2pnP aLzF8FntOAET0iK5LT8uVtr3xzmKPDcIg1S3w2KMEPhew2xsm3rKpzyOkc5xDYaDqVhj H0KA== 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=QWYpNuusQOi5MlDVFLKyNzFQD9134n7hgqc8OuJDn7w=; fh=7XGp2d9p0eQJj/8U8iiNSpVUQDoibDi9TvtUM6Tr/9c=; b=vDyYp3RMsFk2YGt0qNeFcXdRpSs1vF5XIbahN26fkTPmgObTRTlg1iM3nYmXH/o4M+ u5idMAKX1E68LHDY1f5TdkOiItQ9y5p9Evym/5KDsUwyVdYvf7zRP6RMqleGo/dJNoUZ EczTwRBWt0DQBEEoC/zzHUTeCNSyqrmnMR++68QObCIPco0ZvPokaSBf7fn8yaoaAJ7a g70p1NDJ64Qj4HPUyMg4RGuZyDRpCKlAzoGB0FrW7RLBDjckUU7230pbIPrfTzRcKs9m jhaSJ4n7A8d2TjZaSk4XftwQkNyt3HNmJPjjn/AV4tnd8urm4IG0K/P4UMhzjP99LTqn J+rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gZ/2Ws/4"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87757-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87757-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 qa16-20020a17090b4fd000b0029ac8aca113si2680929pjb.169.2024.02.29.17.17.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 17:17:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87757-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="gZ/2Ws/4"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-87757-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87757-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 36CC8285030 for ; Fri, 1 Mar 2024 01:17:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BF672B9DD; Fri, 1 Mar 2024 01:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gZ/2Ws/4" 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 812711E891; Fri, 1 Mar 2024 01:17:02 +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=1709255822; cv=none; b=grmcoU+RGKG8TKaXTtWSqmq/HJcN2B7UJqyIqmm608uWHrG+HBS8UW4yvFsqZsuftzfbaDCNfjR4wjCnjyEw/C6Z2lkVRayqckuZCboyFN2o5lx4Fm2wJrvSjRzt769SclzjxQTxb1zvH98EotFQiAzCj4JxtqQXAHyihgkghO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709255822; c=relaxed/simple; bh=QWYpNuusQOi5MlDVFLKyNzFQD9134n7hgqc8OuJDn7w=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=R3yYhAoH4ijvrLUImkrhtJhVQUyFlUXZEwyDSB41OT6RfV0W/4Pe0brMKAZZL/cKhL1cbMnp6DD2aQWXbKOZRIVyrhGN2Teug8VMpghqHlR6QuPB5nueaCJEagVX2oaTQ927LGH59bqTFsQ1MpSO7ZFRh/P9ZUnCrWieqHvMGmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gZ/2Ws/4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1D3CC433C7; Fri, 1 Mar 2024 01:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709255822; bh=QWYpNuusQOi5MlDVFLKyNzFQD9134n7hgqc8OuJDn7w=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=gZ/2Ws/4uINbDgqzQzTBVPomEekSjvrt17lijYhUY/NKn5VSWurS4h9EFbUan4zlP mdJpetoPpm5ICjxbaw4RQwqsguxh59u5WoBm21Fpk17rCPAn8DMXo7P2rWUg6ihd2W ZmF2gG6n6qxAWIv9aGItnIOkUm6Mk/Y2nrXTzPhlkjSeJ4cNyB/Tx5XtOP3RlyM/+E Hq4Hy3g3fXH0kGkFbiucsVrHcGlUg2GoMVQj3mt7wTxjoiJ6ekP/rP8R/LDRm6F6kx DAynPlriCXnbGZ3y2esMDdbBUcxw5dz+R90Nxsr0GZhW8Q4eSeHyHaEZv6tQQlyV5F bDYCMQ94qc3Mg== Message-ID: <822c03f36eb19376bdd292395c7ecdde.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-1-074334f0905c@gmail.com> References: <20240229-freq-table-terminator-v1-0-074334f0905c@gmail.com> <20240229-freq-table-terminator-v1-1-074334f0905c@gmail.com> Subject: Re: [PATCH 1/7] clk: qcom: gcc-ipq5018: 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:16:59 -0800 User-Agent: alot/0.10 Quoting Gabor Juhos (2024-02-29 10:07:46) > 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 > Fixes: e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver= for IPQ5018") > Signed-off-by: Gabor Juhos > --- Reviewed-by: Stephen Boyd