From: Ian Jackson Date: Mon, 23 Mar 2009 16:35:27 +0000 (+0000) Subject: Correct compilation error in bdf_to_slow X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c2fb5e7fd925501daab02594ce0932268a65c5b4;p=xenclient%2Fioemu.git Correct compilation error in bdf_to_slow This commit: commit 3fcc8c62058a60a31d762da627d4325137eea813 make __insert_to_pci_slot idempotent Signed-off-by: Simon Horman has a trivial compilation error which I now fix. Signed-off-by: Ian Jackson --- diff --git a/hw/pass-through.c b/hw/pass-through.c index 1eb2ad6d..bb35af3c 100644 --- a/hw/pass-through.c +++ b/hw/pass-through.c @@ -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; }