aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/intel-iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index c621c98c99da..d9514c46177f 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3568,6 +3568,8 @@ static void domain_remove_one_dev_info(struct dmar_domain *domain,
3568 found = 1; 3568 found = 1;
3569 } 3569 }
3570 3570
3571 spin_unlock_irqrestore(&device_domain_lock, flags);
3572
3571 if (found == 0) { 3573 if (found == 0) {
3572 unsigned long tmp_flags; 3574 unsigned long tmp_flags;
3573 spin_lock_irqsave(&domain->iommu_lock, tmp_flags); 3575 spin_lock_irqsave(&domain->iommu_lock, tmp_flags);
@@ -3584,8 +3586,6 @@ static void domain_remove_one_dev_info(struct dmar_domain *domain,
3584 spin_unlock_irqrestore(&iommu->lock, tmp_flags); 3586 spin_unlock_irqrestore(&iommu->lock, tmp_flags);
3585 } 3587 }
3586 } 3588 }
3587
3588 spin_unlock_irqrestore(&device_domain_lock, flags);
3589} 3589}
3590 3590
3591static void vm_domain_remove_all_dev_info(struct dmar_domain *domain) 3591static void vm_domain_remove_all_dev_info(struct dmar_domain *domain)