Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4258455rwb; Sun, 7 Aug 2022 19:34:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR76GSeJE86nq8UcWsW1GZfx/HWjcp4y1NQlmsh+uiY35vVoJc4pXNad05nlBY3QTr92Y6NH X-Received: by 2002:a17:90a:b30a:b0:1f4:e12b:6f61 with SMTP id d10-20020a17090ab30a00b001f4e12b6f61mr18632509pjr.153.1659926088696; Sun, 07 Aug 2022 19:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659926088; cv=none; d=google.com; s=arc-20160816; b=usFYkuRd7d+2H18ur7W24LgYe6rV9tFCoudN1K3DUUvpvTJaZhRV/kchcgh7/cjrFc 1USmxJV4+bFJ5eJBj8DjzjNCn4fG/TMs9+hGAccy+yPVwDAXNo2zKjlrPkJWBvG/p0zi K9hUoaSH/Aj8NSjEEH1U7IX84Vk/M6wJRJx3PQpFnXw6gZI/RpB/GZZS/y9PKicaeg3G gyoiKLJPDhKN8Aau2A5GhazqMVCG69mk8X9HEIDrONP7ax1nT/v0cySMmoOU7V8xj/Gs FDVgFbXW95xbw0lGSqu4x5pFJMIUZtWIfBEzJQzZvnyXYKZDVZvY0jTaeo/40RcdjSsv Y5cw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XVgr/bcvSKUZ1oykZWumrvMddRBLGn9csxmnROexgO8=; b=tJiUKS2Rqq00FgXkG9PauD3El6e7UdZUeE3dGdbyFhx7++u+QV39EKiarrhyJVoqf0 gdYCSeuTt+z/TZRBkk1HefaPSSaxuFMnbSP/+g8msun6IE1wgiCkqP7AY8p7/Cr5pBYl SrVWKSlArk4rKr1rIAYNGCGiPSA8bzreSYFka0YYGly0H2DIOcMFFB/KPi1YVxZc9g7H K4WKjWGdvnKiWLvJiYtlFGGp+KvC7RgbVJ7tmhzylPxN9L4D12gTi5RNKYpXicellFJk LyOvBRhvivMn2DGFyytbdj8XjnHaeZYYT22jghVE1L76tP3skzaPMYMtc9uX1cuMXwaj 3ang== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=epR7t3xg; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a631813000000b0041bf460b6b2si6778045pgl.567.2022.08.07.19.34.33; Sun, 07 Aug 2022 19:34:48 -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=@kernel.org header.s=k20201202 header.b=epR7t3xg; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242319AbiHHBgD (ORCPT + 99 others); Sun, 7 Aug 2022 21:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242167AbiHHBem (ORCPT ); Sun, 7 Aug 2022 21:34:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B02BBC82; Sun, 7 Aug 2022 18:33:03 -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 E30D6B80E0C; Mon, 8 Aug 2022 01:33:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B32E2C433C1; Mon, 8 Aug 2022 01:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659922380; bh=uY13mo9qtASTnrLurEscpXAMDs4UVUh1xoWThPdMtxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=epR7t3xgAtzmQ+NU96kwmGoX20fkSDgk4EsAlE3WCmcxo0JTXtV6afV36kolECAFQ o7GLkdlqnqzuhzPeGsAVSqZvdFkPMmvfL//w2YYgV1comvF68Go939nCBG08a/oJHW 2itu1w2BRs5sTEadJOnty/hARg+FCh+LENjo/3KGTNPsPVu/dYk1sh4pKXpQrrZSZ7 0icPWq9yKadu3FHpYhMAURb28Q2R/Ln3XLQnWdgI9Ou+cN2imPJOGZWk02St2SlOji U1j7OqAoBgm3Ts5XV7tNsmliQ1kYCVXO4U0zEdjy3jCussYBdPrZBrAflXsHrSpMSZ ZhsKZvmuTQhng== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Liang He , Tony Lindgren , Sasha Levin , linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: [PATCH AUTOSEL 5.19 35/58] ARM: OMAP2+: display: Fix refcount leak bug Date: Sun, 7 Aug 2022 21:30:53 -0400 Message-Id: <20220808013118.313965-35-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220808013118.313965-1-sashal@kernel.org> References: <20220808013118.313965-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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