]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu: qcom_iommu: Add of_node_put() when breaking out of loop
authorLiang He <windhl@126.com>
Tue, 19 Jul 2022 12:49:55 +0000 (20:49 +0800)
committerWill Deacon <will@kernel.org>
Tue, 19 Jul 2022 17:30:32 +0000 (18:30 +0100)
commit59403de6d2221c953ae3a832471de91feefc57c0
treeca830ca76e1087cd6b62ceb65c5eb8a9068c82ff
parent0f7f153da8b0f9f82f4982ce5e2cb72a229429d9
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: e8baa7bab808 ("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>
drivers/iommu/arm/arm-smmu/qcom_iommu.c