diff options
-rw-r--r-- | drivers/pci/intel-iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index 7f757ce60c5a..b0c96d390802 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c | |||
@@ -3537,8 +3537,8 @@ static void domain_remove_one_dev_info(struct dmar_domain *domain, | |||
3537 | spin_lock_irqsave(&device_domain_lock, flags); | 3537 | spin_lock_irqsave(&device_domain_lock, flags); |
3538 | list_for_each_safe(entry, tmp, &domain->devices) { | 3538 | list_for_each_safe(entry, tmp, &domain->devices) { |
3539 | info = list_entry(entry, struct device_domain_info, link); | 3539 | info = list_entry(entry, struct device_domain_info, link); |
3540 | /* No need to compare PCI domain; it has to be the same */ | 3540 | if (info->segment == pci_domain_nr(pdev->bus) && |
3541 | if (info->bus == pdev->bus->number && | 3541 | info->bus == pdev->bus->number && |
3542 | info->devfn == pdev->devfn) { | 3542 | info->devfn == pdev->devfn) { |
3543 | list_del(&info->link); | 3543 | list_del(&info->link); |
3544 | list_del(&info->global); | 3544 | list_del(&info->global); |