iommu/msm: Add missing __disable_clocks calls
Subsystems (3)
PATCH v2 1/13 iommu/msm: Add missing __disable_clocks calls
The clock is not symmetrically disabled in the error-out routines.
Fixes 109bd48ea2e1 ("iommu/msm: Add DT adaptation")
Cc Sricharan R <[email protected]>
Cc Andy Gross <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Konrad Dybcio <[email protected]>
Signed-off-by Nicolin Chen <[email protected]>
--- drivers/iommu/msm_iommu.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/iommu/msm_iommu.c +2 -0
@@ -418,6 +418,7 @@ static int msm_iommu_attach_dev(struct iommu_domain *domain, struct device *dev)list_for_each_entry (master, &iommu->ctx_list, list) {if (master->num) {dev_err (dev,"domain already attached" ); +__disable_clocks (iommu); ret = -EEXIST ; goto fail; }
@@ -425,6 +426,7 @@ static int msm_iommu_attach_dev(struct iommu_domain *domain, struct device *dev)msm_iommu_alloc_ctx (iommu->context_map,0 , iommu->ncb);if (IS_ERR_VALUE (master->num)) { +__disable_clocks (iommu); ret = -ENODEV ; goto fail; }
Signature · 1 line
2.17.1