Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4260642rwb; Sun, 7 Aug 2022 19:38:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ucQgjdzNvT+iAvmhQYlZcnq2jc9kQOi82foLsRq8QKb/YKzf1g1tIm3Bh2NOOQX9mBe15 X-Received: by 2002:a05:6402:444c:b0:43b:d375:e932 with SMTP id o12-20020a056402444c00b0043bd375e932mr16013102edb.399.1659926333834; Sun, 07 Aug 2022 19:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659926333; cv=none; d=google.com; s=arc-20160816; b=LnjNCbIck+XTKhnK52vZQQ01XP7ymsbV87QKMG0OsYqkGp7MImmXsxTdP44x+gJh2t 2H54u9y8XkutwviwJYpoihetAqGfCij/4X8a90WO5EuYGdvHHNpa69pspz1bqZ8U31vk pc8OlfteObMKctyAqji1gEXPJ5r+iV/idM9anDLEuo3VUiyclAE5Hl0qBitLgwep5cdf adg85agOkmxzSWDfQaRdvXgmGvlQ6UUOCwng9jSTkqzT6ePvN7RRrHjY0bLx/feWWMMZ lPfYtsvhPbYWNsPoDQ2Hoaq84PkIAW9Ta+1OoZNoB3JvGX5WI9K5tVGjZbZjUKt0xJi1 wWXA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O9cypFouf0EmRzPAsmXpl/PoACCKfe0hkmMUxpAt5T4=; b=B7Kqsr/1ezyuSifPsuffTtLJiuiS28rYhVZbSNK6wcFSfup9F1NxHMagOVaOIkk+D5 69A+dIilROsec3rRN10j+3hJlYhwZ3Y3CYPtDYis/uizFHqG6e3MPT0qlWeZ/f4RgD/Q 2fLJ7lAoniDn1XspIhZKI5kLQrNpA/qdpDh39uYmfdGyBFe1XOX9DoAOEj9ekCBG2cLr 6Vkg4bwsfOwCQ8no9RMEgwbJRIxIv+RVaAo1vGsun3LAwXdGMDjzTKrEIyPHb2cnrEJZ F9f/wRR+AOqkH3xq/PU6U39ecA9G1C2I8HmephmHAo+H1U7ZKkJS3fMqK/9keRW5fjuO Cg8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dXVGI6aQ; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji14-20020a170907980e00b0072f1d8e7300si10024221ejc.430.2022.08.07.19.38.27; Sun, 07 Aug 2022 19:38:53 -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=@kernel.org header.s=k20201202 header.b=dXVGI6aQ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242401AbiHHBgH (ORCPT + 99 others); Sun, 7 Aug 2022 21:36:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242308AbiHHBet (ORCPT ); Sun, 7 Aug 2022 21:34:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC25B874; Sun, 7 Aug 2022 18:33:04 -0700 (PDT) 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 3DB6FB80E0A; Mon, 8 Aug 2022 01:33:03 +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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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