public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] iommu/vt-d: fix a loop in prq_event_thread()
@ 2015-10-17  5:18 Dan Carpenter
  2015-10-18 14:26 ` Woodhouse, David
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2015-10-17  5:18 UTC (permalink / raw)
  To: Joerg Roedel, David Woodhouse; +Cc: iommu, linux-kernel, kernel-janitors

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>

diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
index 99a7803..dd070e6 100644
--- a/drivers/iommu/intel-svm.c
+++ b/drivers/iommu/intel-svm.c
@@ -536,7 +536,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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-18 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-17  5:18 [patch] iommu/vt-d: fix a loop in prq_event_thread() Dan Carpenter
2015-10-18 14:26 ` Woodhouse, David

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox