Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2810675rwb; Mon, 15 Aug 2022 11:48:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5dJRdiFmHBSnm7iJdh+8ztRxzJASx85hBqjoHnGVG76u4Mla/wSJftzz5JzBlp6+6cVHmk X-Received: by 2002:a17:907:a073:b0:730:a5a4:4b7d with SMTP id ia19-20020a170907a07300b00730a5a44b7dmr10743864ejc.533.1660589320474; Mon, 15 Aug 2022 11:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589320; cv=none; d=google.com; s=arc-20160816; b=Exk87Jn8NwqEzwLISFqh7qalRQ/gibywS/NoWCoIsOBr/AGscTAMPbtUO9mOZUUFiO OAONtRl3EUnVk66ldzSHph/s4THWPkBgwJexz6tdUQ3VZoBag1ewYhO2SdDViIT6hMPB Yc1nIEl2Z49ptovcxV8NKjG/sl5s/hj3RUA13Q7Bnoz/UnnUrTGoXCadAbg4MYLKwaiK NcXYp3QCtWrCGP4T7FRcBscC5QZ+18Ppenhc+AGySXc2mM6gRlzjg930SyMB0eHrRqkh iNtQbOji+YFGva0+0MEVPqTH9xJJxatk6JhAr6Jk6v/4VzI4NX2cLJeZxzYYTq5FYAVb SnlA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0qHuMW7k00VAOQt5Dpvu3xxVYLyovcelUkrEr8hcT4M=; b=vP5Vp1wxTCLunnDMiLQ+JUV04tYWZnP+pF/MxaYzoBXLLZZ9ccOa2PFLfp54tOd/Cn 5UdpWqd5n814R3bVf1kqGcRO4Q44p6fxLMspyauLjss91RplmvQGRaBmY8YQlgVAsiWA pHeddezxgn0HAk4tRMBm3xn+vh5O4u/Cou6KGYAM4/05LT4Flw9A8v7BWm3Q85f0DCzj qIEOwK9pPDV0PRflflKMroX3mx/ZWmGOIGN2jpZOs48ECjc5NXdI2z6FH2m8HOq5AoKW lLObyHyUijWy30S/zPQz7UM3fSWhNQZaFkrRJwHEUE5K7dDA5bI6xjFcWVqzViDgEWg2 klXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Az1AY4i7; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a056402400a00b004417f8545d5si7996073eda.112.2022.08.15.11.48.15; Mon, 15 Aug 2022 11:48:40 -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=@linuxfoundation.org header.s=korg header.b=Az1AY4i7; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242734AbiHOS32 (ORCPT + 99 others); Mon, 15 Aug 2022 14:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241863AbiHOS1z (ORCPT ); Mon, 15 Aug 2022 14:27:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31F7232063; Mon, 15 Aug 2022 11:20:12 -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 dfw.source.kernel.org (Postfix) with ESMTPS id BEA8B60F25; Mon, 15 Aug 2022 18:19:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0307C433D6; Mon, 15 Aug 2022 18:19:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587599; bh=3RnyWp/lAIMu5h7J9loyAZyYyPtqH0Qubt7OGV3anYQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Az1AY4i7JeAkJ3k90IteFKfsmcDpI6BcIBopSRifPIGoa1pgeijH8HOFdQzcB6q+q RMHGu6f2PTi8mUddR0VYCHyWBC4UXYvllN+45w87NPzb6h757XqnAHkVEJZr+7EGnV QrMfQjglg2bZZfG2OlxyiiQQENaOKHys3SZrOwqY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liang He , Tony Lindgren , Sasha Levin Subject: [PATCH 5.15 135/779] ARM: OMAP2+: pdata-quirks: Fix refcount leak bug Date: Mon, 15 Aug 2022 19:56:19 +0200 Message-Id: <20220815180343.060665985@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 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