diff options
Diffstat (limited to 'drivers/pci/intel-iommu.c')
-rw-r--r-- | drivers/pci/intel-iommu.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index ad85e95d2dcc..3e3910127fc1 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c | |||
@@ -2447,8 +2447,11 @@ static int iommu_no_mapping(struct pci_dev *pdev) | |||
2447 | { | 2447 | { |
2448 | int found; | 2448 | int found; |
2449 | 2449 | ||
2450 | if (iommu_dummy(pdev)) | ||
2451 | return 1; | ||
2452 | |||
2450 | if (!iommu_identity_mapping) | 2453 | if (!iommu_identity_mapping) |
2451 | return iommu_dummy(pdev); | 2454 | return 0; |
2452 | 2455 | ||
2453 | found = identity_mapping(pdev); | 2456 | found = identity_mapping(pdev); |
2454 | if (found) { | 2457 | if (found) { |
@@ -2480,7 +2483,7 @@ static int iommu_no_mapping(struct pci_dev *pdev) | |||
2480 | } | 2483 | } |
2481 | } | 2484 | } |
2482 | 2485 | ||
2483 | return iommu_dummy(pdev); | 2486 | return 0; |
2484 | } | 2487 | } |
2485 | 2488 | ||
2486 | static dma_addr_t __intel_map_single(struct device *hwdev, phys_addr_t paddr, | 2489 | static dma_addr_t __intel_map_single(struct device *hwdev, phys_addr_t paddr, |