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

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

Merge "iommu: arm-smmu: fix NULL pointer dereference"

parents 5e121050 46dd3d2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2834,7 +2834,7 @@ static uint64_t arm_smmu_iova_to_pte(struct iommu_domain *domain,
	struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain);
	struct io_pgtable_ops *ops = smmu_domain->pgtbl_ops;

	if (!ops)
	if (!ops || !ops->iova_to_pte)
		return 0;

	spin_lock_irqsave(&smmu_domain->cb_lock, flags);