Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2814313rwb; Mon, 15 Aug 2022 11:53:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR6L6TB1e7/9cE8M4RHuBbNhhZRMVeUuGNELZL9OPo2QnqHP8t8pGOhQlUVBZWpvOjT7Qd7u X-Received: by 2002:a05:6402:328a:b0:43d:f295:f14c with SMTP id f10-20020a056402328a00b0043df295f14cmr15917655eda.299.1660589618392; Mon, 15 Aug 2022 11:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589618; cv=none; d=google.com; s=arc-20160816; b=eolwSidPqFicsSRXIQs4ptu1mo6iG/1OL6UcXjVQLvDHhid5hvuk4YcIsUlEEEOR9J 3q3s9qijj8mOEAxoBmCgTx5CC6TLXH3i5XUdnycTWTmPtoBJxPbzS7zi24v9sYPKK4iQ DLJef03gF89GQWVFZvpG0M+Em9MwMooFmxLNtxFFoO6/vJRCfaHWVGwsGAZPb6Vf54rJ hBttvPcDbPZ0YsSHPHf7zigT65wT3XPc5tFjptlqxLpB96kxpX1jhk3rgm4kdHhJuFNy h/qyKUrBC7fYCNizx/gQzUbkTLDtV9WEqrxvLwNA7rWL5M/Hf51KMtLFlcXJyvwOidD8 4cbg== 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=hHCbIQkEVI7nBeUBq52wfoZxwh3K/smDICMJILd8Kmoo7ARFDvQqPXryCi8imV0Quv LXsBlAUojPvD4fkw87SSbNGuMaOmV/2gHC7En/4EWToVMU6gC3de/0gyF4MLRHCRFojz 8Y6/fi4j+DTzPlJ/pmEN+Nhm2NuCH9E7IGPhPC/dkBw+vUim1Sl7Zlnrby502crgB/VM lP/UTZVSmXggUBughyi961elXQsmZYydFihbJ3sPY5VG2t4KZm+aC1cJgmrnUDBpFdCK x+aaQqOO95DeLCZDcqgW0Sn98EOTW6KvUrXAa3QP2ruHj4nT3/CbPHdwRzoVGg8KVV9N X0Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gwZLWYBx; 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 dr22-20020a170907721600b0072b3ccd50dasi7829313ejc.905.2022.08.15.11.53.06; Mon, 15 Aug 2022 11:53:38 -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=gwZLWYBx; 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 S243468AbiHOSoR (ORCPT + 99 others); Mon, 15 Aug 2022 14:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243826AbiHOSl1 (ORCPT ); Mon, 15 Aug 2022 14:41:27 -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 265F02ED5B; Mon, 15 Aug 2022 11:25:06 -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 55CABB8107A; Mon, 15 Aug 2022 18:19:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C044BC433D6; Mon, 15 Aug 2022 18:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587596; bh=uY13mo9qtASTnrLurEscpXAMDs4UVUh1xoWThPdMtxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gwZLWYBxruN8ur6qACvYnc5dH0JrLZDC4WggTXVTKEb8Ia0oHtjCMnu7m9Tb4yhvz Vevw3duh7IPuOsGPdHEyQh69tvYqnIa0Mn0v+6ARhB/fnzbdZ+s3GVy6T9o45neERU kAnSE5O5xiMReI2RiHje94X4E41oQsIef04k0nb4= 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 134/779] ARM: OMAP2+: display: Fix refcount leak bug Date: Mon, 15 Aug 2022 19:56:18 +0200 Message-Id: <20220815180343.008593274@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 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