Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3024051rwb; Mon, 15 Aug 2022 16:21:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR4BKd5m/ooPPJxDBvPXm7zF0RbN1UBenxseHzoK+/DENjv6A+I7eqjNm5u51bOA3CSaSi9x X-Received: by 2002:a05:6a00:bc5:b0:52b:49c9:d26c with SMTP id x5-20020a056a000bc500b0052b49c9d26cmr18487204pfu.73.1660605603452; Mon, 15 Aug 2022 16:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605603; cv=none; d=google.com; s=arc-20160816; b=OYEKSGMhmqNuW3PTPBcz3IuvW0En4Jzp5WdtA279qWfVBCGxSgKQgdvT7pCLsUvgwJ j4epCyQc3jGzrW7m8ykXKjsPRUDFaFY4mPAUNKIV8+8+5a5Bzp/6tUbR9WQK0moowa60 AjLcVEEd/urG8r8XbBM8aqFlvbH3UHZ333IKn0H2SjxeUVc4L3fyM2thzjMtaJUWQIeP rTTBUVV9K0CvZLN2OglzYzmvIerbX0CfCgXdVoc2BE0L2TpfKvW1IJgl1uRn5PMl9Dzo sx9xBJI0rgfrtMcRqoaQLVYA0p2hquZG0GHjfZegFBMi0kQxG/SXJrZnA4PV5fcQq8Ce DRXQ== 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=Qq89TsShsS9y9VN9ixMml+Cbxl2vWiJ4mx4vlMA8WLYa4bWbc0FRhYV32M7aoCJh9Z 1g99YKjlJBuIatwJgvHXjmlWDu2I7PdUDAafGIo8rMwas8YlhOsEBf/tFiNfB4n3gWjA d+CSi0tBZ0GyBW+PHCGsxafZS6y6jGkhFex3S4AkgyIk75EZ56PYar3PObiTs91bmBII 8/I1S8tbZ7GA5+RtmQG1lpAJEbQel82rczmOTaon6+K/XJualP3GBDQdsQ0g0xSbnHxv NrvsYQ1/T6RhxUmLQ2b2nIKYmsbOgDhYCrlEm4ABNgIFnBmSLw066XkkdTB49Na1prlo dLlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wmPSmVOR; 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 w15-20020a17090a528f00b001f52214a049si10808458pjh.75.2022.08.15.16.19.51; Mon, 15 Aug 2022 16:20:03 -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=wmPSmVOR; 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 S1345872AbiHOUeS (ORCPT + 99 others); Mon, 15 Aug 2022 16:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346701AbiHOU23 (ORCPT ); Mon, 15 Aug 2022 16:28:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFDA0A1A5F; Mon, 15 Aug 2022 12:04:17 -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 16022612AF; Mon, 15 Aug 2022 19:04:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07301C433B5; Mon, 15 Aug 2022 19:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590256; bh=uY13mo9qtASTnrLurEscpXAMDs4UVUh1xoWThPdMtxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wmPSmVORPm7BomJZbAjQuRYITAWdpdSYYeonylgVz8qcwfi5c2LDrR2zRABw8nOOu e3u9S6GdUV+AHKU2icY3fuhbtPTn7LtEBQTJafWPHImsfnN6e7HgJXCf3Aj5J8J37X oAcq6BEQXUingOzzseLb91iNAX++T7/ZfsA5VWjs= 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 0162/1095] ARM: OMAP2+: display: Fix refcount leak bug Date: Mon, 15 Aug 2022 19:52:41 +0200 Message-Id: <20220815180436.271876476@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 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