From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC98CC25B07 for ; Mon, 8 Aug 2022 01:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vzKeGwYtfrsxQt5NIa2sZLHpbKltvSkJoWBX3/EIEM8=; b=DIOvTm2iOPwpNi LyzR5b7umr500ByINn2s1y79CtJm3fq/Z+QRjTWC7cq71kE0XHUR8jayAym5JMksbtrIdQP6lcNV+ QnBeqMOpIvEqAlaNBdrRdQLdUo1Lfp+flHUskWqRHhgK2YNE5+NebFvxwWJNPVPpcU24j9xBVVZfn Pe8BGr0Z0Ci6PbpmxJJuU3hx8VYMO07Pw1lLaSBykEoG/jZQhF2KUdy2iSoXNamF/sixNrNLClLuc FUJaAe7wZOIxeP6hM4jqp2ChRwpmVmC6YNPTOuh4GI1lal4YgpuIclDyt1CW55sCOJhfHmNQRUvHs UbjOqz1cKPZgr0BpwzYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oKrog-007hS5-4s; Mon, 08 Aug 2022 01:44:26 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oKrdf-007bx4-JR for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2022 01:33:05 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8948A60DEE; Mon, 8 Aug 2022 01:33:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1205DC433D6; Mon, 8 Aug 2022 01:33:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659922382; bh=IVk6LSqpcL/QqL+Fmi/ypollB5miE9Yu22CKICMxIbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dXVGI6aQipv5iJNuWcIn4m06NCDPpIjsrF9EmV6mHdCXd5pk+EX7BprYh1tFPzVJb RuxS1md4XaC4xF8/CmlL5fNcO21sw1Gu3YuiT0iKvhBYwpuTNhjrQ87M/5tkFpivj2 EUsfr3FATAd/qoQbd1GVM4BVeotqGsqsb/eHQHyJzYy01P+Al/q/uT/Zo4WYAjGvMG LB/gDFO7HRIiNo5t4chAWM1PRwRnkeDRFSVQn0kFoKOWE1ZTKRHQ0s/JFvEPemBR9y XkKlPmg+s9bgLuRDyoJqjDLGpPEIa6Re8XAE7padcVS7s/VONyVGAEkHW94kc/oWrk oBCIDGspWxYsg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Liang He , Tony Lindgren , Sasha Levin , linux@armlinux.org.uk, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.19 36/58] ARM: OMAP2+: pdata-quirks: Fix refcount leak bug Date: Sun, 7 Aug 2022 21:30:54 -0400 Message-Id: <20220808013118.313965-36-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220808013118.313965-1-sashal@kernel.org> References: <20220808013118.313965-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220807_183303_735152_2FEC9790 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Liang He [ Upstream commit 5cdbab96bab314c6f2f5e4e8b8a019181328bf5f ] In pdata_quirks_init_clocks(), the loop contains of_find_node_by_name() but without corresponding of_node_put(). Signed-off-by: Liang He Message-Id: <20220618020603.4055792-1-windhl@126.com> Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/pdata-quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 13f1b89f74b8..5b99d602c87b 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -540,6 +540,8 @@ pdata_quirks_init_clocks(const struct of_device_id *omap_dt_match_table) of_platform_populate(np, omap_dt_match_table, omap_auxdata_lookup, NULL); + + of_node_put(np); } } -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel