mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
drivers/passthrough: Revert 23352:ea48976517af -- incorrect bugfix.
Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
28f8fb7d2b
commit
36a72c1e42
1 file changed
+2
-2
@@ -173,11 +173,11 @@ out:
|
||||
|
||||
int pci_remove_device(u8 bus, u8 devfn)
|
||||
{
|
||||
struct pci_dev *pdev, *tmp;
|
||||
struct pci_dev *pdev;
|
||||
int ret = -ENODEV;
|
||||
|
||||
spin_lock(&pcidevs_lock);
|
||||
list_for_each_entry_safe ( pdev, tmp, &alldevs_list, alldevs_list )
|
||||
list_for_each_entry ( pdev, &alldevs_list, alldevs_list )
|
||||
if ( pdev->bus == bus && pdev->devfn == devfn )
|
||||
{
|
||||
ret = iommu_remove_device(pdev);
|
||||
|
||||