ARM: OMAP2+: omap4-common: Fix refcount leak bug
authorLiang He <windhl@126.com>
Tue, 28 Jun 2022 11:29:39 +0000 (19:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:45 +0000 (09:33 +0100)
commit1d9452ae3bdb830f9309cf10a2f65977999cb14e
tree3ee1ef937c91240388108aad3987c4a96c3d56f0
parent4a46f52ae8f0c0da75ebefe8078892d700f6b147
ARM: OMAP2+: omap4-common: Fix refcount leak bug

[ Upstream commit 7c32919a378782c95c72bc028b5c30dfe8c11f82 ]

In omap4_sram_init(), of_find_compatible_node() 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 <windhl@126.com>
Message-Id: <20220628112939.160737-1-windhl@126.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-omap2/omap4-common.c