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

Commit 106e3c5b 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: Fix the tough checks in get_attr"

parents b2328868 38b9a919
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1864,17 +1864,11 @@ static int msm_iommu_domain_get_attr(struct iommu_domain *domain,
		*((unsigned int *) data) = ctx_drvdata->num;
		break;
	case DOMAIN_ATTR_TTBR0:
		if (!ctx_drvdata)
			return -ENODEV;

		ttbr0 = get_full_ttbr0(priv);

		*((u64 *)data) = ttbr0;
		break;
	case DOMAIN_ATTR_CONTEXTIDR:
		if (!ctx_drvdata)
			return -ENODEV;

		if (IS_CB_FORMAT_LONG)
			ctxidr = priv->procid;
		else