]> xenbits.xen.org Git - xenclient/ioemu.git/commitdiff
Correct compilation error in bdf_to_slow
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 23 Mar 2009 16:35:27 +0000 (16:35 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 23 Mar 2009 16:35:27 +0000 (16:35 +0000)
This commit:
    commit 3fcc8c62058a60a31d762da627d4325137eea813
make __insert_to_pci_slot idempotent
Signed-off-by: Simon Horman <horms@verge.net.au>
has a trivial compilation error which I now fix.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/pass-through.c

index 1eb2ad6d4c036715866d18df78268daf52606cd8..bb35af3c5b0ad6cecb876a20d70d5eab4d69fe5b 100644 (file)
@@ -924,7 +924,7 @@ int bdf_to_slot(char *bdf_str)
     /* locate the virtual pci slot for this VTd device */
     for ( i = 0; i < NR_PCI_DEV; i++ )
     {
-        if ( pci_slot_match(bus, dev, func, slot) )
+        if ( pci_slot_match(bus, dev, func, i) )
             return i;
     }