From nobody Wed May 13 18:20:44 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA6E8C43334 for ; Thu, 16 Jun 2022 03:15:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349705AbiFPDPF (ORCPT ); Wed, 15 Jun 2022 23:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348016AbiFPDPD (ORCPT ); Wed, 15 Jun 2022 23:15:03 -0400 Received: from mail-m963.mail.126.com (mail-m963.mail.126.com [123.126.96.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A77E4340CC for ; Wed, 15 Jun 2022 20:14:58 -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=/sM5M +gbgYIiAZs5Y2MZIAgmpYmz8zwF7R3/CtM0M+0=; b=fcuoXRF/VGUlhKaXi1eiI L2e4bJP/gN9OIIRcgqIqqbLlq9zxlIGqnzvZ/YwvUQctmcRPh2d0aU1ualKxZVwg GxxNIV9s0BSciDzmDDDKNVtG/hNhfxknpBH49ref3fC7iD6jGIz46iRb5gkFxi9X JiJd0+lhC68k4ZUWzAxZzs= Received: from localhost.localdomain (unknown [124.16.139.61]) by smtp8 (Coremail) with SMTP id NORpCgB31Jjwn6pi+aPiFg--.24971S2; Thu, 16 Jun 2022 11:13:53 +0800 (CST) From: Liang He To: linux@armlinux.org.uk Cc: windhl@126.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm: mm: (cache-tauros2) Add missing of_node_put() Date: Thu, 16 Jun 2022 11:13:51 +0800 Message-Id: <20220616031351.3974560-1-windhl@126.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: NORpCgB31Jjwn6pi+aPiFg--.24971S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtF4UXry8JryrKry3tF1UWrg_yoWfuwbEga 4Iq3W2krnYgan2vw1DCF45Gr4UZrn093Z5Zr13XrnxAryfAFyUJrs7ta1Sv348urZagFZ3 JrWDJ340yF12kjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xR_k9NDUUUUU== X-Originating-IP: [124.16.139.61] X-CM-SenderInfo: hzlqvxbo6rjloofrz/1tbi3BEiF1pEDurv5QAAsI Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" In tauros2_init, we use of_find_matching_node() to get a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Signed-off-by: Liang He --- changelog: v2: (1) use real name for Sob (2) use proper subject title v1: fix missing of_node_put arch/arm/mm/cache-tauros2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mm/cache-tauros2.c b/arch/arm/mm/cache-tauros2.c index 88255bea65e4..05eab6e44cfc 100644 --- a/arch/arm/mm/cache-tauros2.c +++ b/arch/arm/mm/cache-tauros2.c @@ -294,6 +294,7 @@ void __init tauros2_init(unsigned int features) pr_info("Not found marvell,tauros2-cache, disable it\n"); } else { ret =3D of_property_read_u32(node, "marvell,tauros2-cache-features", &f); + of_node_put(node); if (ret) { pr_info("Not found marvell,tauros-cache-features property, " "disable extra features\n"); --=20 2.25.1