iommu/arm-smmu: qcom_iommu: Add of_node_put() when breaking out of loop
stable inclusion from stable-v5.10.137 commit 2ada6b4a800768a1f28594fb030927259f0c1d4e 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=2ada6b4a800768a1f28594fb030927259f0c1d4e -------------------------------- [ Upstream commit a91eb680 ] In qcom_iommu_has_secure_context(), we should call of_node_put() for the reference 'child' when breaking out of for_each_child_of_node() which will automatically increase and decrease the refcount. Fixes: d051f28c ("iommu/qcom: Initialize secure page table") Signed-off-by:Liang He <windhl@126.com> Link: https://lore.kernel.org/r/20220719124955.1242171-1-windhl@126.com Signed-off-by:
Will Deacon <will@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Reviewed-by:
Wei Li <liwei391@huawei.com>
Loading
Please sign in to comment