]> git.itanic.dy.fi Git - linux-stable/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>
Thu, 12 May 2022 10:20:20 +0000 (12:20 +0200)
commitb5d92ad96f2750291f19b4f37bcc3ea9e9a620f1
treeecad8728b36bfe6a0e0aba34c6030424169011e3
parent2edeba4d5d4184b2baa2a98a3bec481b7d797fc2
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