]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3f80b6b3a68561244aa0b12695c90756bfaa706
tree3ee1ef937c91240388108aad3987c4a96c3d56f0
parent2eee1516781c3f8274402ec0e40ded4638c6afdf
ARM: OMAP2+: omap4-common: Fix refcount leak bug

[ Upstream commit bad34dfe6500d7cc001ee8fe36840a4c80defc5b ]

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