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 A27E3C19F2A for ; Mon, 8 Aug 2022 02:22:26 +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=DVrEMt09rF21tuCwreIuDdBG5Ja0R6/T2nnsTWieS6E=; b=YU5NTl5BRtL6+J U423cErMNykdiVQdDoGpD1HRRo4+alkR1QVH1sctaLCs8EymrfvyE3GDYZBra/AudypmhUdXiBqLO FA65TK2zW3ILGn5MhutysBqhIlhuHjhPjMoSF2z5vYoE7LVWy26QUmVLvlVZbgDAiQRfaGOw9y7kA 82d/RWuP71qJZQ3IeUJBMfgW2JwmjzVPFi44z4LKwXbmOo97LFBsj+WJC5vofFrM2Oty0TnI8+uBl 2AlXImB6jbXo+32ERFattMewEWt+/c4T0QyDZxp9DRpwOqdYyssXe712+UUa1UuZh0ExgdytK51cT hC5XleACJAG38S/qtRcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oKsOQ-007xR1-CZ; Mon, 08 Aug 2022 02:21:22 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oKrhf-007eEu-0b for linux-arm-kernel@lists.infradead.org; Mon, 08 Aug 2022 01:37:14 +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 ams.source.kernel.org (Postfix) with ESMTPS id A4E2AB80E0D; Mon, 8 Aug 2022 01:37:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C4E2C433D7; Mon, 8 Aug 2022 01:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659922628; bh=3RnyWp/lAIMu5h7J9loyAZyYyPtqH0Qubt7OGV3anYQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i43ErIVHUErJFm+K8ZEUK+CP2qp3usFLoLcgyX92o0mYtGPmtfPDTWQtRzFraWX59 L1w9CrMkQ+CCUJ3EW7XsT4eixC81YLNYGkZ0IbLT2astTXUZHsUr80VrCsx4i5qv7j AN45HYpZXmPEqk2iKkKlCrovo8TLPsZadTVkYF2M8cl1q4laDBLgh+8e4wqYp2PTmq pWkt5MbBqy6NH4/HAA1mGPkSJvTTo30oxRWFGQVf1Ye/bvcedmcmuNqWJpjTy4LaZ8 HQ9h9t/XbabXOJx2NvMByae133HxI0pH0VqHKbCrFoeEkxSiFjznx3mAUdfVVgRJHo egi6vd+FeuMzw== 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-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 29/45] ARM: OMAP2+: pdata-quirks: Fix refcount leak bug Date: Sun, 7 Aug 2022 21:35:33 -0400 Message-Id: <20220808013551.315446-29-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220808013551.315446-1-sashal@kernel.org> References: <20220808013551.315446-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_183713_363948_EC378D01 X-CRM114-Status: UNSURE ( 9.70 ) 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 765809b214e7..bf50acd6b8a3 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -587,6 +587,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