Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2900827rwb; Mon, 15 Aug 2022 13:38:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR4wCJC7n1+FVJbMUvgDDzdrc+LV6zlHnvXONcVJ1TS2OeLavAMeqPKlcu8pkKSTmg+0f1dN X-Received: by 2002:a17:907:2d0f:b0:731:87d0:13aa with SMTP id gs15-20020a1709072d0f00b0073187d013aamr12020650ejc.142.1660595907070; Mon, 15 Aug 2022 13:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660595907; cv=none; d=google.com; s=arc-20160816; b=mix9qs0DzCMrMRBIAr5tdDHH0X7YLTVv7VT+P2LzIF1D2DhSEoK+hR/8DNSS/71uf3 ez1AEo250Dyj6rehxkJQHPZytRwJuwa5sH3OZM/KYYEP4pHi5VaX0ouSLE1b5xGYEk4S nssH73dJd8Kh3XvlaPEE5bBnCQuc10Y/ZCWayLUyXJV9TvN2vq3bBP8a7OHjkQWI0B5I qKPPSsv2hI1ZoZqNLSMO4QAVRrlC0kHjHi6PYjQYk7eqt2/4lsQbpyLKGab8yyAdiOS/ dVfBXqLGzmFDpc3kmQESyGu9+verKm7sXKYbxWlr7FoiWBD0OF/eNEA/Lu/80fj7ane+ cVag== 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=KLDlXWW3mFoqP/ShIkX6sIZ4CF0fUBtjbKxAR2vnrek=; b=l3dr2nSIvgqroPmLhPn5ssKT7i9Jz+xB2eMPiuV4C6HBzhg2K8FC2f8uhMzMRADdxU fvYM+9BCc9Edju329iXXvUmQVpkOLYGhzXmIDmMSZGKYCv6t1loc4X5b/R67/g3inzEZ JyVoGi/IU+HGnzD1CB/jEvSw8dCgbBBttxTXjzlgDAnbhraDU2z0JnRczWJStwCBdpIa P2Ezs5nz+0m79Nf1TawymWWKLm6i7XdpRTJhh1CLWYPHYD4/2FAqhN/MEB1hKwRJ4bGB JfpciPQnVWOXhHDqWC0XXHgt2A9KBiqXFwmAd1As0GKOMzYkI+pwHQ2KBBV5FI1rbC39 Ebkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u1d+tka8; 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 hd14-20020a170907968e00b00702d8b7438csi9204267ejc.326.2022.08.15.13.38.00; Mon, 15 Aug 2022 13:38:27 -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=u1d+tka8; 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 S1346564AbiHOUar (ORCPT + 99 others); Mon, 15 Aug 2022 16:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347334AbiHOUWS (ORCPT ); Mon, 15 Aug 2022 16:22:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C8B633E28; Mon, 15 Aug 2022 12:02:40 -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 7CCD061299; Mon, 15 Aug 2022 19:02:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73E55C433C1; Mon, 15 Aug 2022 19:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590158; bh=lN24LFKC2NWslvWPfsezsUuZEr7kWkBTZ/LrqMh9pO8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u1d+tka8nSQhM7YiTcR76raVR8fY5Zjsw853qB9DNe8uQOxikMbk8eSpy68WrpGXm 4h/Vgi4sQhkqUtZHkLYQMoThsyEVkZ8ydDECVPs0+x3mqz6iXSHwn6UogwOv62JEOH yaAu8YoU7TDplHf3rpnh0Nm2OXsyyImmWTyFJXiA= 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.18 0163/1095] ARM: OMAP2+: pdata-quirks: Fix refcount leak bug Date: Mon, 15 Aug 2022 19:52:42 +0200 Message-Id: <20220815180436.317297633@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 e7fd29a502a0..af9d8c432af0 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -551,6 +551,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