Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9eb79093 authored by Mitchel Humpherys's avatar Mitchel Humpherys Committed by Matt Wagantall
Browse files

iommu/arm-smmu: add missing cleanup to attach error path



We need to disable clocks and unlock a mutex if
arm_smmu_init_domain_context fails during attach.  Add the proper
cleanup.

Change-Id: Id097ee6815d63b61dd3db1843f054ed991d34224
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 81ee53cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1453,7 +1453,7 @@ static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev)
	/* Ensure that the domain is finalised */
	ret = arm_smmu_init_domain_context(domain, smmu);
	if (IS_ERR_VALUE(ret))
		return ret;
		goto err_disable_clocks;

	/*
	 * Sanity check the domain. We don't support domains across