|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] pci_remove_device: fix linked list discip
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1305877942 -3600
# Node ID ea48976517af58e75a1bd71d5dbe6f481e518c17
# Parent 0e9322ece398ee26b2812d2c80a0692c06ebe636
pci_remove_device: fix linked list discipline
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
---
diff -r 0e9322ece398 -r ea48976517af xen/drivers/passthrough/pci.c
--- a/xen/drivers/passthrough/pci.c Fri May 20 08:48:33 2011 +0100
+++ b/xen/drivers/passthrough/pci.c Fri May 20 08:52:22 2011 +0100
@@ -173,11 +173,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-unstable] pci_remove_device: fix linked list discipline,
Xen patchbot-unstable <=
|
|
|
|
|