diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index da63b358ef4a8e27510a71d274594c5f99b9eee0..5d3c220a030859fe66a4fe15d1378f544e59e165 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -4449,7 +4449,7 @@ static struct iommu_device *intel_iommu_probe_device(struct device *dev) u8 bus, devfn; iommu = device_to_iommu(dev, &bus, &devfn); - if (!iommu) + if (!iommu || !iommu->iommu.ops) return ERR_PTR(-ENODEV); info = kzalloc(sizeof(*info), GFP_KERNEL);