In xf86MatchPciInstances, fail gracefully when there's no PCI device at all.

This allows the autoconfig logic to fall through sanely on non-PCI machines,
which importantly includes Xen virtual machines.
This commit is contained in:
Adam Jackson 2006-09-14 19:26:37 -04:00
parent a8f9936f55
commit 63acf18b7e

View File

@ -1635,6 +1635,8 @@ xf86MatchPciInstances(const char *driverName, int vendorID,
*foundEntities = NULL;
if (!xf86PciVideoInfo)
return 0;
/* Each PCI device will contribute at least one entry. Each device
* section can contribute at most one entry. The sum of the two is