提交 3c7c2f32 编写于 作者: D Dan Carpenter 提交者: David Woodhouse

iommu/vt-d: fix a loop in prq_event_thread()

There is an extra semi-colon on this if statement so we always break on
the first iteration.

Fixes: 0204a496 ('iommu/vt-d: Add callback to device driver on page faults')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 e0349921
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册