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

Commit 5f94da82 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu/arm-smmu: Check that iommu_fwspecs are ours" into msm-4.8

parents 2457d049 22e6f6ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2364,7 +2364,7 @@ static int arm_smmu_add_device(struct device *dev)
		fwspec = dev->iommu_fwspec;
		if (ret)
			goto out_free;
	} else if (fwspec) {
	} else if (fwspec && fwspec->ops == &arm_smmu_ops) {
		smmu = arm_smmu_get_by_node(to_of_node(fwspec->iommu_fwnode));
		if (!smmu)
			return -ENODEV;