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)
commit033cac39d0b7623b564350216b9163fd1086bf92
treea82a2ba8b66976864c35c74ce968a2dcd32466fa
parenta933ee691dbdb369bf1e613afea52fb43bfb71b3
ARM: OMAP2+: Fix refcount leak in omap_gic_of_init

[ Upstream commit 0f83e6b4161617014017a694888dd8743f46f071 ]

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: fd1c07861491 ("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