mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 19:00:12 +01:00
//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:
parent
96d65874af
commit
ff4d7161af
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue