Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3023666rwb; Mon, 15 Aug 2022 16:21:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR6sQbucUPPkVRmuszfb5r6HbhMNy5nk8+5dKQE2F9/dA/g6u3foG3PuYD5gEC8Rj80fNw6o X-Received: by 2002:a17:907:1629:b0:730:7d10:639c with SMTP id hb41-20020a170907162900b007307d10639cmr11413898ejc.256.1660605674882; Mon, 15 Aug 2022 16:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605674; cv=none; d=google.com; s=arc-20160816; b=uLFZ4rTSObf6y9MtJbwnMizqgIxgOowxF+XYRRZyzueuK2pu7/IDIcsvdzt3rcViCp YMDLl6ZJf5tpwHlBkozKogeee4VWjFaFpCOMHNDWzmEfYnRmIQ5KwFHgBLFk31LlNqvG gIQfKwELP9u2JrfNCh07jpk1OqYbhXuE7otD19r9rZ2cR1ry6VUjOu84v1JE7ChhHbv4 2Fo2ekfr/pnINp+xVcqBYGyLFenv+9wNB1sLIqK5tAhqEEjZ+FlXIku4NFW4NLJY8ZbQ m+7irY13f0w1ZdIBPC/bClvinLCVqkQEzJNClGUDoBbMenIDGHJJpeE/KxESTE9YaSJb cHEg== 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=O9cypFouf0EmRzPAsmXpl/PoACCKfe0hkmMUxpAt5T4=; b=YPB/TBlAqpQTaRrd5XHFKbTc/pRgBMtQJ9UybllGy7lbBcQj8q06irPISWpq/QVsIT f6LhDhhq5c1jDG9MxNRQD+STN1EJWbyIMfmk0wplXE0XodItCp4hIUWlXrGyh0uf1ZNu D3wzYlyFqhOyQlML3k5WN9Wss5kfQkU/GXn4ou2TIk4f3FJ1i3sm1DqvLoX3PmS5j2X+ 4BWtGaEx9ovslGkhbWm0neNSCpetWJVElSmoldIjTdLSajel6ykwN0Ho39XT7NbD4C0f jKm9jiXDIRideOENiDnfpaKMnhMYiezxF/COZw8cYYEHgCZ6BB52jRX3akDV4O7G9l/f wsbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cCSBgpGs; 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 h12-20020a05640250cc00b0043dc589b730si9525097edb.72.2022.08.15.16.20.49; Mon, 15 Aug 2022 16:21:14 -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=cCSBgpGs; 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 S1350626AbiHOWgs (ORCPT + 99 others); Mon, 15 Aug 2022 18:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351254AbiHOW17 (ORCPT ); Mon, 15 Aug 2022 18:27:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFE6F6FA15; Mon, 15 Aug 2022 12:47:51 -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 136A061231; Mon, 15 Aug 2022 19:47:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1998FC433C1; Mon, 15 Aug 2022 19:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592870; bh=IVk6LSqpcL/QqL+Fmi/ypollB5miE9Yu22CKICMxIbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cCSBgpGs61JfFM5b5CuzQiqRPdrKO9sWAN6duE4zFoYTJlIhzQQrmFM2TBFRYCniF TchMBHCMLrb46YYdpEk55iPs6WHqOtd6VC+En/BX1/maG5jyew/PUNV58npFRlDabS InOQaRwNrI7BIe1R5crhCeNOFqr/TajprN5UJnRU= 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.19 0176/1157] ARM: OMAP2+: pdata-quirks: Fix refcount leak bug Date: Mon, 15 Aug 2022 19:52:12 +0200 Message-Id: <20220815180446.771169988@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 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