aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/dmar.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/dmar.c')
-rw-r--r--drivers/pci/dmar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c
index 380b60e677e0..3264b626725a 100644
--- a/drivers/pci/dmar.c
+++ b/drivers/pci/dmar.c
@@ -1226,7 +1226,7 @@ irqreturn_t dmar_fault(int irq, void *dev_id)
1226 source_id, guest_addr); 1226 source_id, guest_addr);
1227 1227
1228 fault_index++; 1228 fault_index++;
1229 if (fault_index > cap_num_fault_regs(iommu->cap)) 1229 if (fault_index >= cap_num_fault_regs(iommu->cap))
1230 fault_index = 0; 1230 fault_index = 0;
1231 spin_lock_irqsave(&iommu->register_lock, flag); 1231 spin_lock_irqsave(&iommu->register_lock, flag);
1232 } 1232 }