iommu/vt-d: fix a loop in prq_event_thread()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 17 Oct 2015 05:18:47 +0000 (08:18 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 18 Oct 2015 14:26:04 +0000 (15:26 +0100)
There is an extra semi-colon on this if statement so we always break on
the first iteration.

Fixes: 0204a4960982 ('iommu/vt-d: Add callback to device driver on page faults')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-svm.c

index da73d2b13f5479a35c1583387b0db5228a2442c6..dd871d5888c73636379724be398a864fd471edb6 100644 (file)
@@ -543,7 +543,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)
                /* Accounting for major/minor faults? */
                rcu_read_lock();
                list_for_each_entry_rcu(sdev, &svm->devs, list) {
-                       if (sdev->sid == PCI_DEVID(req->bus, req->devfn));
+                       if (sdev->sid == PCI_DEVID(req->bus, req->devfn))
                                break;
                }
                /* Other devices can go away, but the drivers are not permitted