diff --git a/hw/xfree86/os-support/bus/Pci.c b/hw/xfree86/os-support/bus/Pci.c index 4bc189bbd..319bd4fb4 100644 --- a/hw/xfree86/os-support/bus/Pci.c +++ b/hw/xfree86/os-support/bus/Pci.c @@ -956,6 +956,11 @@ xf86scanpci(int flags) PCITAG tag; static Bool done = FALSE; + /* + * if we haven't found PCI devices checking for pci_devp may + * result in an endless recursion if platform/OS specific PCI + * bus probing code calls this function from with in it. + */ if (done || pci_devp[0]) return pci_devp;