mips: cdmm: Fix refcount leak in mips_cdmm_phys_base
stable inclusion from stable-v5.10.110 commit ef1728e3cb9e43f38ed10cde705a7ba2b4ad2d35 bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ef1728e3cb9e43f38ed10cde705a7ba2b4ad2d35 -------------------------------- [ Upstream commit 4528668c ] 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: 2121aa3e ("mips: cdmm: Add mti,mips-cdmm dtb node support") Signed-off-by:Miaoqian Lin <linmq006@gmail.com> Acked-by:
Serge Semin <fancer.lancer@gmail.com> Signed-off-by:
Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Yu Liao <liaoyu15@huawei.com> Reviewed-by:
Wei Li <liwei391@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment