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

Commit 85de55ff authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

iommu/arm-smmu: Add missing unlock in attach error path



We currently have an error path in arm_smmu_attach_dev where we're
returning with a mutex locked.  Fix this.

Change-Id: I197edea7cefe361027cf46e22313ebe844684ec8
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent e813b4b3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1540,6 +1540,7 @@ static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev)

	if (dev->archdata.iommu) {
		dev_err(dev, "already attached to IOMMU domain\n");
		mutex_unlock(&smmu_domain->init_mutex);
		return -EEXIST;
	}