Message ID | 20220107204939.3939151-1-trix@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6A3AAC433F5 for <linux-arm-kernel@archiver.kernel.org>; Fri, 7 Jan 2022 20:51:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8PCE0w8WV4Brj78/7OdIF3EjcceAU3rl0PB+IcNtc+Q=; b=HTb01me426h47s glaHYLEe922uyu2A9D1XPe0YSvE+OScFuyfkH9VOyt99BvnOXnmlpuDl5xdM/nhpU4NCEWgUqGJRU /qfKcKj73XVpvwsYEEd3Yg9KvDHR7VyGKXWhUevFiiKCjeVSoy1jKgP+N2HXT/LpwB7UXHtfFwY6F NxljTTgwzN69XPKdmoRmrXgW0xi7zVMK1X0cGg4qjEwPqRk4L0pPw8tIq8L32lkAhohHKR+iSYNmm S0loWEqBLtVE9QNJBQ9OAkkl7UIlpR1OuYwAd/VRJ+xXALtNEmIrnYnZGN1ffGKAFeZBfcAMwzERT iR86CYnV6aTf/vInOr+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n5wBO-005EAs-Uu; Fri, 07 Jan 2022 20:49:55 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n5wBL-005EAE-Sw for linux-arm-kernel@lists.infradead.org; Fri, 07 Jan 2022 20:49:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641588587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rFO4WJY3j7pAXTu1RPPXXQTX/D3JtAjVln6pv17Se70=; b=Fd5AuVkJwEjMVd9eNHGtvv0meAu71vwA9bsMmPd148N2aLBrIDwHIOswsHG+ZdUuPigvV1 x4tCeHm+DKOW0Zjvnc3T4Is4p/kFbsof0OxL6fbd3R+6rdvLbAHdgGt+8Hg75yfxF3CLux l4W0JgcAUJeUdg7rMvskEW51KsC8QDg= Received: from mail-oo1-f69.google.com (mail-oo1-f69.google.com [209.85.161.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-56-8IQSdV8nPdmt2akK-Ch_PA-1; Fri, 07 Jan 2022 15:49:45 -0500 X-MC-Unique: 8IQSdV8nPdmt2akK-Ch_PA-1 Received: by mail-oo1-f69.google.com with SMTP id b8-20020a4a9bc8000000b002c5d4b37b30so4233161ook.3 for <linux-arm-kernel@lists.infradead.org>; Fri, 07 Jan 2022 12:49:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rFO4WJY3j7pAXTu1RPPXXQTX/D3JtAjVln6pv17Se70=; b=WAMiZvZ12Iv+cqQgdAPbUnsiyBQGpiE0/M1p2KQX8hJC3brP402pD27Fe0K5Du8j77 /poKxmBFnixycEOY4a7xR7iRg2MgvPhZ7RTyfRhRCV3ifteLdGNwmM8TMmNqbNpxCXOO 0f/hZ2uJlxGu1JIdskf2LkfiROFrZn/qX8ncUqLaOQNpIxCmfcYERF63o0HOucH8hQoA a7rQ5uzKfPww9rUtXTYFNv2ybdwYe5mVX8TCQFZ1ytCVBIVj+1S//4G4F++fybsQat76 QouRLxjFDwg911s3VmGBcC6Py6znVh1cA/F7obyDNKZWDM9JxQYb0JcBcFPigxsgTnPY 2DOA== X-Gm-Message-State: AOAM532MLfs/1UyOd39a0G4LIKWDoifOHQGCfSlG9JuDKORbz6AVTb52 YmZAHwJb36qhODeud6OyUdcPurg95ZDRKr1md5ouMB3AzRsI9EzxAe1AKrlj/fUe51ky+lHzX2p dPAwCRW+l7+d0b5703rFPWjGQMAFPftlAtwY= X-Received: by 2002:a05:6830:2b14:: with SMTP id l20mr47451467otv.42.1641588585253; Fri, 07 Jan 2022 12:49:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoF/ZqeM2gXeI5h7MGTxjtgzAX2We+Kfkvc0DuwXwOA198L3Mc61AmDSUseGbyUBDzv34mkA== X-Received: by 2002:a05:6830:2b14:: with SMTP id l20mr47451453otv.42.1641588585073; Fri, 07 Jan 2022 12:49:45 -0800 (PST) Received: from localhost.localdomain.com (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id e4sm1133222oiy.12.2022.01.07.12.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 12:49:44 -0800 (PST) From: trix@redhat.com To: mturquette@baylibre.com, sboyd@kernel.org, nobuhiro1.iwamatsu@toshiba.co.jp, nathan@kernel.org, ndesaulniers@google.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] clk: visconti: fix array's data insert check Date: Fri, 7 Jan 2022 12:49:39 -0800 Message-Id: <20220107204939.3939151-1-trix@redhat.com> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220107_124952_052811_29C537D8 X-CRM114-Status: GOOD ( 12.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
clk: visconti: fix array's data insert check
|
expand
|
diff --git a/drivers/clk/visconti/pll.c b/drivers/clk/visconti/pll.c index 3b6e88bb73d5b..7f2e1016536ab 100644 --- a/drivers/clk/visconti/pll.c +++ b/drivers/clk/visconti/pll.c @@ -289,7 +289,7 @@ static void visconti_pll_add_lookup(struct visconti_pll_provider *ctx, struct clk_hw *hw_clk, unsigned int id) { - if (ctx->clk_data.hws && id) + if (id < ctx->clk_data.num) ctx->clk_data.hws[id] = hw_clk; }