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

Commit a16769d7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu: msm: refine the check for double attach cases"

parents 6edb2a6a 5926ad7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -996,7 +996,7 @@ static int msm_iommu_dynamic_attach(struct iommu_domain *domain,
	priv = domain->priv;

	/* Check if the domain is already attached or not */
	if (priv->asid < MAX_ASID)
	if (priv->asid < MAX_ASID && priv->asid > 0)
		return -EBUSY;

	ret = idr_alloc_cyclic(&iommu_drvdata->asid_idr, priv,