]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Fix refcount leak in omap_gic_of_init
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 9 Mar 2022 10:43:01 +0000 (10:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:32 +0000 (09:14 +0200)
commit00a35e0a243ff8ab65e56487126190b0629e7854
treea82a2ba8b66976864c35c74ce968a2dcd32466fa
parenta5226c3bf07faa1c1328dde8a37c09803f32e985
ARM: OMAP2+: Fix refcount leak in omap_gic_of_init

[ Upstream commit 42a2979fb4f8d8925ccd59624df23ec96fccdd29 ]

The of_find_compatible_node() function returns a node pointer with
refcount incremented, We should use of_node_put() on it when done
Add the missing of_node_put() to release the refcount.

Fixes: b21048b96a79 ("ARM: OMAP4: Fix the init code to have OMAP4460 errata available in DT build")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Message-Id: <20220309104302.18398-1-linmq006@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-omap2/omap4-common.c