Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3017466rwb; Mon, 15 Aug 2022 16:14:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ku2v0KBnMUxhqyHKm7JlmJXzlGNhczbxhmu4yN4gfhd6N/h4D619RVezWGFScPvFhpc3S X-Received: by 2002:a17:906:9b09:b0:730:9480:9729 with SMTP id eo9-20020a1709069b0900b0073094809729mr11937966ejc.588.1660605247195; Mon, 15 Aug 2022 16:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605247; cv=none; d=google.com; s=arc-20160816; b=ki6BhefqCh8tv5LJUQjw6WAPjVsXWk+iNHKtGRkuH9CHDMmtBRvmXHgndVI2ld/GIz piiPJz5r4AxBJDPphOJTvwOf+79w+DebHNp05uYiBdL7swWKlIcIqLw8n7lek1L7aE5B EC+jqUc9Yddf8kn/a96ExS74nCouJGwuvChjAimUT+PdnBJspLGrwuHNi8wilfFaRJvQ Xe7P6WYl0ULrTxV942t1amUTd2Zd3O5TiMLYoVa/IHsPF4XJ5W6Wx9qkLf0gzItJ1Li3 DfkByjjtdvy4TQGkyIIyG/TiT7i99dzDUk0XscorvaEMQsB8DWEm+sAkFbiidVS/8RX6 QWig== 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=XVgr/bcvSKUZ1oykZWumrvMddRBLGn9csxmnROexgO8=; b=Tpo26GelXl/Ifk4NTeoFDlzgK0zHff1PENGjzWVUCZBkAVeVz8T/GWP06HDSgxsmji TvJBqNrTrZ/N5IKbYyK2q6+r7V2dIsizInGz11gY9B9rpT0XHjJftd+0/ef/elI4Ywks uAWz/yPIL1oXHjKz5i8zMdeubocJVk4ccl51bJdt5c2ve3sHPLF0/9dWzgpWbUG6ehXQ Pr4+1nmhEW+1kQ3M1HZa02FQpiX/50ljCW8QzL/tGIqROg4SSYRfWn+fH59cPcZWxCzZ wuzJq4MA8h6E2Y6yTkMC071MJdLgRBGj+0QCrXx6AEBpWzKfgMdRPCm1ssyXsCDkfv0f Jzuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S8DABog2; 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 q17-20020a50cc91000000b0043e438a48e1si8931449edi.178.2022.08.15.16.13.42; Mon, 15 Aug 2022 16:14:07 -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=S8DABog2; 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 S1350348AbiHOWgZ (ORCPT + 99 others); Mon, 15 Aug 2022 18:36:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351225AbiHOW1y (ORCPT ); Mon, 15 Aug 2022 18:27:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0C586F559; Mon, 15 Aug 2022 12:47:43 -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 4287CB81148; Mon, 15 Aug 2022 19:47:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75765C433D6; Mon, 15 Aug 2022 19:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592860; bh=uY13mo9qtASTnrLurEscpXAMDs4UVUh1xoWThPdMtxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S8DABog2vUMBLH3wIgjsgKJsHe09eaqVdvMiwnK9CNOcEiMjVqkMFNpiBlf4ggf+5 c2kbsGf5Lh3ANWrCGSZZPIy9QYocymxp2x99FQa1A8B4K9c6QXCTAiKd3hPoY9Kzmh x5evWHXBX2esCw39RIgqx7LyRnxAE8BSiBpDlTV8= 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 0175/1157] ARM: OMAP2+: display: Fix refcount leak bug Date: Mon, 15 Aug 2022 19:52:11 +0200 Message-Id: <20220815180446.729429046@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 50b87a32a79bca6e275918a711fb8cc55e16d739 ] In omapdss_init_fbdev(), of_find_node_by_name() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Signed-off-by: Liang He Message-Id: <20220617145803.4050918-1-windhl@126.com> Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index 21413a9b7b6c..eb09a25e3b45 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -211,6 +211,7 @@ static int __init omapdss_init_fbdev(void) node = of_find_node_by_name(NULL, "omap4_padconf_global"); if (node) omap4_dsi_mux_syscon = syscon_node_to_regmap(node); + of_node_put(node); return 0; } -- 2.35.1