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

Commit 1c675128 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu: arm-smmu: Fix use-before-init issue"

parents 0fad7db0 d043ed8c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1898,7 +1898,6 @@ static int arm_smmu_init_domain_context(struct iommu_domain *domain,
	enum io_pgtable_fmt fmt;
	struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain);
	struct arm_smmu_cfg *cfg = &smmu_domain->cfg;
	bool is_fast = smmu_domain->attributes & (1 << DOMAIN_ATTR_FAST);
	unsigned long quirks = 0;
	bool dynamic;

@@ -2020,7 +2019,7 @@ static int arm_smmu_init_domain_context(struct iommu_domain *domain,
		goto out_unlock;
	}

	if (is_fast)
	if (smmu_domain->attributes & (1 << DOMAIN_ATTR_FAST))
		fmt = ARM_V8L_FAST;

	if (smmu_domain->attributes & (1 << DOMAIN_ATTR_USE_UPSTREAM_HINT))