Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1111275iog; Wed, 15 Jun 2022 21:52:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sePrBpRHk1UA8rB/NZqDkGStqQCGise8FjWvsCGscuCcM7uEjKK3aau4LIwPWTs8V8lYPv X-Received: by 2002:a17:907:2d13:b0:711:b149:5272 with SMTP id gs19-20020a1709072d1300b00711b1495272mr2919341ejc.326.1655355139502; Wed, 15 Jun 2022 21:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655355139; cv=none; d=google.com; s=arc-20160816; b=HSdtQPChAXu/GXfh9h06/PIOHwN3iG3vh73PeU2CG6NvMg1xMKrkUSMKdSTYPUjC6q iwdC1YgcUFvreCYLEzBCoKnKW5oG9mZhXh5Ibpue4FXwrHTdaCDGE7pzFwFeMDcOgHQD fI0lWYMx53x4kjPkSqY4ua6w3UpW5NNccxY+ZzWXWxgiSqUr2rf8JnoEm8PgAy2eKT2I oZ2gbPVNjdlM4RxMq2f39oNGnCK4qMJCvHGzlnKCBZU7e7YELfSrr6zS+vHQXjIINR3v LmKKeG/pEt5uhNJ438cewfyyuKIQGPf/W/+VY234jOsXKS1BIPwN92t0zpdOEVE/ss9G YR5Q== 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=IxkdqGmI6wbNhP8pfR8cbyFTioiWkLwyfVCb3r7nF0E=; b=VkFgqr2l2Fp+OAj57o8FcWICVbxIgFyyf1FSquYBH4jF0IAXiE/yFz0ZSqWH53iXXD pyP4gJ7nvL2qNUThMvLpwOyyhKFqJhd7R9xR6AsuK7f/ARr+3zoCg339wnsv6X14aiyb e9Y1aU1HJhQXBxNCvy5dfDs403T/+koDyTiljUK8HjqmBB6TfWS4MyJVIxNF4N1PdLJm hpjZUugC5UNFl44JrhIy4Oz28yW7q7nSQXbJxMTWUwY0xilvhMuBg4ZhFIcSM8eOPK3r ZdLA+am2q1Ocb8kE9NU4qnIU6U7Gu1EaWYFlznDm6r/1S/sA/3r2JUFBcrXQPj4HPWPK 9qqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=RIitEX3e; 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 e6-20020a17090658c600b00718cd011ce2si628262ejs.905.2022.06.15.21.51.54; Wed, 15 Jun 2022 21:52:19 -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=RIitEX3e; 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 S1347241AbiFPDym (ORCPT + 99 others); Wed, 15 Jun 2022 23:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbiFPDyl (ORCPT ); Wed, 15 Jun 2022 23:54:41 -0400 Received: from m15111.mail.126.com (m15111.mail.126.com [220.181.15.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FE70393DA for ; Wed, 15 Jun 2022 20:54:40 -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=Ixkdq GmI6wbNhP8pfR8cbyFTioiWkLwyfVCb3r7nF0E=; b=RIitEX3ejh5wtDnU/pdua acjPPdeMrTlqTkYFL1zH9+TGCXuL3YA8XpLeIv1xn/OyokKKeBzY1Hdn+7xPUjvy m5etUSecKR0LVr9db8Xr/iHLGfsWgTiJSpJMO1MUSFwv/FjjyJ6HG2lPTWVzZ+AI usy5tlbX6yIxMxaXdhYuZ0= Received: from localhost.localdomain (unknown [124.16.139.61]) by smtp1 (Coremail) with SMTP id C8mowABXNd5VqapikZj7EQ--.25062S2; Thu, 16 Jun 2022 11:53:58 +0800 (CST) From: Liang He 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 v2] mach-versatile: (platsmp-realview) Add missing of_node_put() Date: Thu, 16 Jun 2022 11:53:56 +0800 Message-Id: <20220616035356.3976296-1-windhl@126.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: C8mowABXNd5VqapikZj7EQ--.25062S2 X-Coremail-Antispam: 1Uf129KBjvdXoWruw4kWryDJF45ZryDJFyxXwb_yoWfGrbEqF 1xX3y7Gw1rJ392q395ZF45GrZrAw18CrnxJry8AFy3CF15JF9rArs2q3saq3yFvrW3KrW3 XrZrXrWYkr47ujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xR_znQ7UUUUU== X-Originating-IP: [124.16.139.61] X-CM-SenderInfo: hzlqvxbo6rjloofrz/1tbi7RciF1pEANTsVAAAs9 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 realview_smp_prepare_cpus(), the second of_find_matching_node() has no corresponding of_node_put() when the node pointer is not used anymore. Signed-off-by: Liang He --- changelog: v2: use real name for Sob v1: fix missing bug arch/arm/mach-versatile/platsmp-realview.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-versatile/platsmp-realview.c b/arch/arm/mach-versatile/platsmp-realview.c index 5d363385c801..059d796b26bc 100644 --- a/arch/arm/mach-versatile/platsmp-realview.c +++ b/arch/arm/mach-versatile/platsmp-realview.c @@ -66,6 +66,7 @@ static void __init realview_smp_prepare_cpus(unsigned int max_cpus) return; } map = syscon_node_to_regmap(np); + of_node_put(np); if (IS_ERR(map)) { pr_err("PLATSMP: No syscon regmap\n"); return; -- 2.25.1