//bugs.freedesktop.org/show_bug.cgi?id=1965) attachment #1425

(https://bugs.freedesktop.org/attachment.cgi?id=1425): Avoid recursive
    calls of xf86scanpci(). This function normally detects that it has been
    called before by checking if the PCI structure is filled out. So far if
    this was not the case (because PCI probing has failed for some reason)
    the function is traversed again. With the chipset specific PCI bus
    probing this can lead to an endless recursive loop as the post-probing
    code calls xf86scanpci() from within this function. Patch by Egbert
    Eich <eich@freedesktop.org>
This commit is contained in:
Roland Mainz 2004-12-15 05:52:16 +00:00
parent 96d65874af
commit ff4d7161af

View file

@ -954,10 +954,13 @@ xf86scanpci(int flags)
pciBusInfo_t *busp;
int idx = 0, i;
PCITAG tag;
static Bool done = FALSE;
if (pci_devp[0])
if (done || pci_devp[0])
return pci_devp;
done = TRUE;
pciInit();
#ifdef XF86SCANPCI_WRAPPER