Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1864033rwb; Fri, 19 Aug 2022 10:39:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR7smt7inAUvebEX8Xak6omfMqv4t3CNnPBLqko2Qyf74aVXpf1dlVdRlmvjpuZVqkeotRwU X-Received: by 2002:a17:907:6e14:b0:730:a229:f747 with SMTP id sd20-20020a1709076e1400b00730a229f747mr5880737ejc.202.1660930741410; Fri, 19 Aug 2022 10:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930741; cv=none; d=google.com; s=arc-20160816; b=WoWSS/aL5uVEb2RFD+FL/26FWo8JVYRyGeYZfALXIsGrw+uVeb9k7goEyao3HWUF+3 CkEcsPP4/+uH9nZF7HGjsIVcmhzJAktl/O6WH6KC/ercdboyb1ySIhcHyUcczOM09J0L He6tXkCHWW6t+G7G4rJ12jzWDoTHR9Nhm3ibUIX9qEfA35pnBx/JGUEPugj1McUMZcOV e6JU01Bd/K/Degs+ceuELo5Qumo6hYqD6ZjtMDhKXwu3vu2y5oLnPEsXruzhMP7fswSE RsB+BDOmeiot3DRWZePRZtLL+YAa8/OENDn8Fr8CxtzIckt4QpJanWHBj3t5Een0DL7O eaSw== 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=J8EPUCAo3bY2HlsMe8naXDJSwS+O4Zbj/4Tdustu73w=; b=uGFX9PjFTcwckT1iCDYm1Ly9EVHq46A677NGkh3PId2sNtx+HFZw/hnW06iOs29pgG FylmUXOil6D8FvsZRp5xfT46O3a1WJWu9ykeW8EW5RMy3sJTE53lHLZOJxtU7dfLihc0 co0/7p4DSv2zlx7ggRbOKWUONHDpTLTYo5emtUn+WoiNHAyyTibmQk3DuEuUNHy/94zp 6aDch5y+1Tj5qBdR00dG4VtlQ6xulYkq39BH18ynoxuaNVd9gQo+XBPS6+oCz5xp/gMu SB2Slt+q4xA0CPKQzxvlKTJy2yX4kwBjCluq8OlhWpTnO6CiZrYTqqtIA30jwPvBAVKY FPzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ydUm8VB8; 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 o14-20020a056402438e00b0043d476f96c1si4056071edc.86.2022.08.19.10.38.35; Fri, 19 Aug 2022 10:39:01 -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=ydUm8VB8; 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 S1350758AbiHSP5Q (ORCPT + 99 others); Fri, 19 Aug 2022 11:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350729AbiHSPzd (ORCPT ); Fri, 19 Aug 2022 11:55:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B788107AF7; Fri, 19 Aug 2022 08:50:14 -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 07624B82811; Fri, 19 Aug 2022 15:50:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54B2BC433D6; Fri, 19 Aug 2022 15:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924210; bh=f/BuLTN4u7KLUgN1z0stkr4+2cfAX1Qvcl3cgUYEets=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ydUm8VB8Sc+yJgKGKmCWZixkcxQfsVlKqJzWCzDnsj0786vygELtp4/Sa7GIYmUx5 eyJbBllypzk7VoyAdHlQfs2y1T9KpFnEXfdTSDzw1oj1+c7mQYrNrRb6auq8e6kCpa 7oCTJ2Czdm4W3xY4tXEK5yR9US5awMZuSY16DDZM= 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.10 094/545] ARM: OMAP2+: display: Fix refcount leak bug Date: Fri, 19 Aug 2022 17:37:44 +0200 Message-Id: <20220819153833.470773655@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 6098666e928d..fc635eed73ab 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