Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp314542iog; Wed, 15 Jun 2022 02:51:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1usdMa+XRTHc+MsGO5rmrtacMbYWmPvEnYbjRhsQfeLvA9JZtI9wUWKXS5nj8BkkQ0l4NgD X-Received: by 2002:a17:902:7088:b0:167:78c0:e05e with SMTP id z8-20020a170902708800b0016778c0e05emr8407824plk.149.1655286668338; Wed, 15 Jun 2022 02:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655286668; cv=none; d=google.com; s=arc-20160816; b=WJNy/ZQ5+aDcuSWH8DFGe2x8HBbJVU8S1tyjPl5VMgLoh6J3AdQgT21XEcdeyBl1ee rIn0H9o2c0Tbm+LSUSeXzlB3f2F7eW9i6RlAIWonHwx90UAb9+FvV2Hfa5/F0CJRkv0C pNk8vvcAJU+ICxNaxLHFVPCElEeeDnbilhRoeLeP3sF5gx8s8dp59kH9l6tFJOJuZ2g+ 64QJ39AuBT935Wu/+Px3d7wuqvlkx9yzDHNU5C+irZORgtqWFzfA0e2iUrMtKKkbHJyP HRnVndFi/eDqj3iCK5S/x0C8N+1EATGaZmMyI7xoQXUVSZDlCHlhQ42+05WchFrpERe+ bblw== 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=m3QcTW/lZeAJnaksoHMUlocc+Y9Uw/FS+TMacmhO/3E=; b=oq+CthcP712l95nsCNpa+zFc53GaHvO4m8lk2ZD8pUMuFuk1b2Yeiu3U9YRr+WFI+t yU3vhnPP5u17khVp+gjBe+8LnUAuSyexWGTCFJaj6JwWXHSSNTyRRmy1nQI96wuTSL1+ 025JZW0JpmsLYIsQM1+4/BpdqdB6hYMrw4kdoIImejpT+Po/25mIuG4ZmClopIUQ240E BMXbI3mksBCPUKwSVlSZEPeWsLsLXo3fNRx2EQhXQ9xE+S76b3S+ncMdel2GdRx94qVb PPuRzx9AZ1AGH7hvgqF+gAARiDKQObjHYiiRjgzbl4gqpZdBi0pNsQ8RJhy/EAFUAdSq DEww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=UiNo61SD; 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 j13-20020a170903024d00b00168ddc71b6csi12755740plh.617.2022.06.15.02.50.54; Wed, 15 Jun 2022 02:51:08 -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=UiNo61SD; 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 S240742AbiFOJFv (ORCPT + 99 others); Wed, 15 Jun 2022 05:05:51 -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: 8bit 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 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 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 = of_iomap(cm, 0); + of_node_put(cm); if (!cm_base) { pr_crit("could not remap core module\n"); return; -- 2.25.1