Skip to content
Commit a91eb680 authored by Liang He's avatar Liang He Committed by Will Deacon
Browse files

iommu/arm-smmu: qcom_iommu: Add of_node_put() when breaking out of loop

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: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220719124955.1242171-1-windhl@126.com
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent ef660de4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment