Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp316680iog; Wed, 15 Jun 2022 02:54:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sRX3jlmMq4E4PNSQUEgrKvHACRZUuaxzZpQ2z6+ZPIEl86RzX2E5VyhzNOSPwotz2dyEDO X-Received: by 2002:a17:90b:1c10:b0:1e8:90bd:d912 with SMTP id oc16-20020a17090b1c1000b001e890bdd912mr9300548pjb.233.1655286842318; Wed, 15 Jun 2022 02:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655286842; cv=none; d=google.com; s=arc-20160816; b=zdfzNMSnEZAgrBxgLRVcO0yq11CYqoEW8fD8bA01Or9C808YaknX8CF70w0Whox1zR zIfx61+cjBOsLJ2AuJwGeUL3aKMaSxIUvGS++hGhB5MHfbWxAMqoZtj7jiZFDU5ME3EI /xhqzcFkKtSVF3oQOu9t6oUcci8KQmu233qztYImNrojkD/1cuKvgzTE1aFfdpWFrPqM zgmp8bStHpB7LZLK1KnpFFg4LjM3iLMeyIRMqDz8zdcie+h8XDP0E+GBMNuRhmjtw2ft 4nyamF9ZaeRvOelM3J/vcdwrLGT4TFPeH8nKLkLREAVkfkrkCiuIuyHs2MORVWm4P7BY CosA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wSyOh7TGpKD2kl3xp22qwOR325N+9r8RRXVPnSEe8+M=; b=UyXBMGARUQnEprkhc9uFMVBXU7Rr2Njp+78Cf0k24lgids4d+hDgi33e0fUj3/8j8e UHdwoFFMWm8AfuWIxRx1hFWZzSMlN6/u/q2Zrwn9/UI2ZwQ1CQVQyc8xNYpUfHVgw2J+ 2zIwbnGFfe+D6stC0v3GHD3AQ9G4jKFz9GPgQ/eMzYvQEbnxxLyEYjpqSh5vPBYYD7hd +1Y101MjmX+ed8robpTOh/tEROqphxmyD2RX+8+IMV2zN1uUM3YoSsYUaCCv+A5c8dj4 4RG4iEgK85qg9YO41kjMjnJ7gGTgop/wnq7d5IhO6U7hhfNMlEx/sN1Ghq/KSGRHL0k6 SqEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=Z5ci7uin; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a631403000000b003fdf7e8b368si17166293pgl.278.2022.06.15.02.53.50; Wed, 15 Jun 2022 02:54:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=Z5ci7uin; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348053AbiFOJbN (ORCPT + 99 others); Wed, 15 Jun 2022 05:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347361AbiFOJbM (ORCPT ); Wed, 15 Jun 2022 05:31:12 -0400 Received: from mail-m964.mail.126.com (mail-m964.mail.126.com [123.126.96.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D13D533367 for ; Wed, 15 Jun 2022 02:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=wSyOh 7TGpKD2kl3xp22qwOR325N+9r8RRXVPnSEe8+M=; b=Z5ci7uin7PadAKgs23lml 1voAIHwgT9P2Fi9mkZ1hf6fPzWn/s8lGLuuc6NLXrU/ry2iluDwlsqmCLWcmRI1h BAQcLdZskVIUcmTsoOMTn1uSvfafvoTxO15U4QZjMWDdaYDlZ0NlxxaFixjmRoDW X1lpCF3JEnBxwv0+C8mTWM= Received: from localhost.localdomain (unknown [124.16.139.61]) by smtp9 (Coremail) with SMTP id NeRpCgAH+p6gpqlimnAfEw--.6836S2; Wed, 15 Jun 2022 17:30:08 +0800 (CST) From: heliang To: linus.walleij@linaro.org, linux@armlinux.org.uk Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, windhl@126.com Subject: [PATCH] arch: arm: mach-versatile: Add missing of_node_put() Date: Wed, 15 Jun 2022 17:29:58 +0800 Message-Id: <20220615092958.3962271-1-windhl@126.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: NeRpCgAH+p6gpqlimnAfEw--.6836S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtF13Ar13GFy3Xr1DCF4UArb_yoW3uFb_tF 1ftaykGw4rJFyIgrykCF1fGrZrZ340gr1kJryIyr98Ary3ArnrArZ7t3s2gw4rWFW2kr43 Wrs7CrWF9ay29jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xR_7Ks3UUUUU== X-Originating-IP: [124.16.139.61] X-CM-SenderInfo: hzlqvxbo6rjloofrz/xtbBGgghF1-HZTWGvAABsX X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,SUSPICIOUS_RECIPS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In vexpress_smp_dt_prepare_cpus(), of_find_matching_node() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Signed-off-by: heliang --- arch/arm/mach-versatile/platsmp-vexpress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-versatile/platsmp-vexpress.c b/arch/arm/mach-versatile/platsmp-vexpress.c index 1ee3c45e71c9..459b5870de59 100644 --- a/arch/arm/mach-versatile/platsmp-vexpress.c +++ b/arch/arm/mach-versatile/platsmp-vexpress.c @@ -66,6 +66,8 @@ static void __init vexpress_smp_dt_prepare_cpus(unsigned int max_cpus) if (scu) scu_enable(of_iomap(scu, 0)); + + of_node_put(scu); /* * Write the address of secondary startup into the -- 2.25.1