mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
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: 0204a49609
('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>
This commit is contained in:
parent
e034992160
commit
3c7c2f3288
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue