From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E24C4C3F6B0 for ; Mon, 8 Aug 2022 01:43:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242810AbiHHBnb (ORCPT ); Sun, 7 Aug 2022 21:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243026AbiHHBln (ORCPT ); Sun, 7 Aug 2022 21:41:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 951895FC0; Sun, 7 Aug 2022 18:35:18 -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 BEFF460E07; Mon, 8 Aug 2022 01:35:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60CF2C433C1; Mon, 8 Aug 2022 01:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659922517; bh=uY13mo9qtASTnrLurEscpXAMDs4UVUh1xoWThPdMtxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IMO18AxCnTTrWLtRmzp0vcvV8MLQOWJBlW0qgGyEXsFcoU8OIaxxnyoEWVKzSYt+B ciNUYhi9+SpT0as6gAIhBkdX6uPxyFbo7rr4kZ/umH8Aw6P4SZDvDKo5f5Hk4q5yX2 GdbZuiamB/F0zgf6XRnNwq2wr7Uz9VWF/GSZlPAz7OWrmq0q7fp24TbtxH9DKiV2fX ar5SbWeYRcg5GSvlwkMgs3PkpPX0Ei+bCdk1Beyg4OA5nmOlDfTDbcR0BWtYc0JKGe gaDaN0Ujn2JC6KbD3uW1zIDEzVEbHsFjU8KrY0sl9lj9NNXkrOagwrliOS9/fqerIg 5JZLYxA/vXMQA== 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.18 34/53] ARM: OMAP2+: display: Fix refcount leak bug Date: Sun, 7 Aug 2022 21:33:29 -0400 Message-Id: <20220808013350.314757-34-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220808013350.314757-1-sashal@kernel.org> References: <20220808013350.314757-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit 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