From nobody Mon Apr 27 08:42:07 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 7072FC43334 for ; Wed, 15 Jun 2022 09:05:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230240AbiFOJFw (ORCPT ); Wed, 15 Jun 2022 05:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233761AbiFOJFr (ORCPT ); Wed, 15 Jun 2022 05:05:47 -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 DEF1C3A734 for ; Wed, 15 Jun 2022 02:05:44 -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=m3QcT W/lZeAJnaksoHMUlocc+Y9Uw/FS+TMacmhO/3E=; b=UiNo61SD8RKmWL2GiBMrk ZIXdsDgyhjkCuktOBDp8bb3E+dG1aavOuZU+P1MuKZ9aRMPiSPR95244O1tUz+Lu p6RTNviBzKinR0GF8fxlmq+TjPd8QMdZDykMlb31njKvvvPSk0VpFU0L0HF4gaSx 26w5PG5TN+CrYkdiHq+dSU= Received: from localhost.localdomain (unknown [124.16.139.61]) by smtp8 (Coremail) with SMTP id NORpCgA3JGnPoKli0ReSFg--.42622S2; Wed, 15 Jun 2022 17:05:19 +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 in integrator.c Date: Wed, 15 Jun 2022 17:05:17 +0800 Message-Id: <20220615090517.3961621-1-windhl@126.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: NORpCgA3JGnPoKli0ReSFg--.42622S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7JFyUCr15GrW3ZryfKr47XFb_yoWxtwc_t3 Z2g3ykJrn5Ja1IvryDCr4akry7Zwn7GrsYgry8Ar17G34aqr17Cr4vqryIk348uwnrKrW7 X397Ar1av3Wa9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xR_znQ7UUUUU== X-Originating-IP: [124.16.139.61] X-CM-SenderInfo: hzlqvxbo6rjloofrz/1tbi7Q8hF1pEAM8zhAAAsy Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" In cm_init(), of_find_matching_node() will return a node pointer with refcount incremented. We should use of_node_put() when the pointer is not used anymore. Signed-off-by: heliang --- arch/arm/mach-versatile/integrator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-versatile/integrator.c b/arch/arm/mach-versatile= /integrator.c index fdf9c4db08a7..fba19357171a 100644 --- a/arch/arm/mach-versatile/integrator.c +++ b/arch/arm/mach-versatile/integrator.c @@ -76,6 +76,7 @@ void cm_init(void) return; } cm_base =3D of_iomap(cm, 0); + of_node_put(cm); if (!cm_base) { pr_crit("could not remap core module\n"); return; --=20 2.25.1