ARM: OMAP2+: Fix refcount leak in omap3xxx_prm_late_init
stable inclusion from stable-v5.10.137 commit d294d60dc68550fee0fbbe8a638d798dcd40b2c5 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d294d60dc68550fee0fbbe8a638d798dcd40b2c5 -------------------------------- [ Upstream commit 942228fb ] of_find_matching_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. Fixes: 1e037794 ("ARM: OMAP3+: PRM: register interrupt information from DT") Signed-off-by: NMiaoqian Lin <linmq006@gmail.com> Message-Id: <20220526073724.21169-1-linmq006@gmail.com> Signed-off-by: NTony Lindgren <tony@atomide.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录