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)
committerTony Lindgren <tony@atomide.com>
Tue, 12 Apr 2022 09:55:46 +0000 (12:55 +0300)
commit0f83e6b4161617014017a694888dd8743f46f071
treea82774196cc4f5c167cc2211a704be5a712a55c0
parent71ff461c3f41f6465434b9e980c01782763e7ad8
ARM: OMAP2+: Fix refcount leak in omap_gic_of_init

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>
arch/arm/mach-omap2/omap4-common.c