|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-4.0-testing] pci_remove_device: fix linked list dis
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1305895904 -3600
# Node ID 187be422e57f9958c45a3a1edcca5f201d0ccec3
# Parent 26a4cedefec06da92819f31fb62a28903c26d8f7
pci_remove_device: fix linked list discipline
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
xen-unstable changeset: 23352:ea48976517af
xen-unstable date: Fri May 20 08:52:22 2011 +0100
---
diff -r 26a4cedefec0 -r 187be422e57f xen/drivers/passthrough/pci.c
--- a/xen/drivers/passthrough/pci.c Mon May 16 13:41:58 2011 +0100
+++ b/xen/drivers/passthrough/pci.c Fri May 20 13:51:44 2011 +0100
@@ -170,11 +170,11 @@
int pci_remove_device(u8 bus, u8 devfn)
{
- struct pci_dev *pdev;
+ struct pci_dev *pdev, *tmp;
int ret = -ENODEV;
spin_lock(&pcidevs_lock);
- list_for_each_entry ( pdev, &alldevs_list, alldevs_list )
+ list_for_each_entry_safe ( pdev, tmp, &alldevs_list, alldevs_list )
if ( pdev->bus == bus && pdev->devfn == devfn )
{
ret = iommu_remove_device(pdev);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-4.0-testing] pci_remove_device: fix linked list discipline,
Xen patchbot-4 . 0-testing <=
|
|
|
|
|