xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pci_remove_device: fix linked list discipline
@ 2011-05-18  8:53 Tim Deegan
  2011-05-20 15:41 ` Jan Beulich
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Deegan @ 2011-05-18  8:53 UTC (permalink / raw)
  To: xen-devel

# HG changeset patch
# User Tim Deegan <Tim.Deegan@citrix.com>
# Date 1305708740 -3600
# Node ID 7b12c46b18777655c8a5f8290286f5699c77c335
# Parent  f531ed84b0661aa6863dc86d5e5638642bc47301
pci_remove_device: fix linked list discipline

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>

diff -r f531ed84b066 -r 7b12c46b1877 xen/drivers/passthrough/pci.c
--- a/xen/drivers/passthrough/pci.c	Tue May 17 17:32:19 2011 +0100
+++ b/xen/drivers/passthrough/pci.c	Wed May 18 09:52:20 2011 +0100
@@ -173,11 +173,11 @@ out:
 
 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);

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

end of thread, other threads:[~2011-05-23 12:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-18  8:53 [PATCH] pci_remove_device: fix linked list discipline Tim Deegan
2011-05-20 15:41 ` Jan Beulich
2011-05-23  9:55   ` Tim Deegan
2011-05-23 12:54     ` [PATCH] " Tim Deegan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).