Fixing probably long-standing bug in domain support.

This commit is contained in:
Matthias Hopf 2006-10-10 19:37:22 +02:00
parent 6776c0f0e9
commit 1b94c117e0

View File

@ -498,7 +498,7 @@ xf86GetPciDomain(PCITAG Tag)
pPCI = xf86GetPciHostConfigFromTag(Tag);
if (pPCI && (result = PCI_DOM_FROM_BUS(pPCI->busnum)))
return result;
return result + 1;
if (!pPCI || pPCI->fakeDevice)
return 1; /* Domain 0 is reserved */