From c2fb5e7fd925501daab02594ce0932268a65c5b4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 23 Mar 2009 16:35:27 +0000 Subject: [PATCH] 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 --- hw/pass-through.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5