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:
		
							parent
							
								
									a8f9936f55
								
							
						
					
					
						commit
						63acf18b7e
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue