|  | @@ -400,6 +400,10 @@ static int intelx_probe ( struct pci_device *pci ) {
 | 
		
	
		
			
			| 400 | 400 |  
 | 
		
	
		
			
			| 401 | 401 |  	/* Map registers */
 | 
		
	
		
			
			| 402 | 402 |  	intel->regs = ioremap ( pci->membase, INTEL_BAR_SIZE );
 | 
		
	
		
			
			|  | 403 | +	if ( ! intel->regs ) {
 | 
		
	
		
			
			|  | 404 | +		rc = -ENODEV;
 | 
		
	
		
			
			|  | 405 | +		goto err_ioremap;
 | 
		
	
		
			
			|  | 406 | +	}
 | 
		
	
		
			
			| 403 | 407 |  
 | 
		
	
		
			
			| 404 | 408 |  	/* Reset the NIC */
 | 
		
	
		
			
			| 405 | 409 |  	if ( ( rc = intelx_reset ( intel ) ) != 0 )
 | 
		
	
	
		
			
			|  | @@ -424,6 +428,7 @@ static int intelx_probe ( struct pci_device *pci ) {
 | 
		
	
		
			
			| 424 | 428 |  	intelx_reset ( intel );
 | 
		
	
		
			
			| 425 | 429 |   err_reset:
 | 
		
	
		
			
			| 426 | 430 |  	iounmap ( intel->regs );
 | 
		
	
		
			
			|  | 431 | + err_ioremap:
 | 
		
	
		
			
			| 427 | 432 |  	netdev_nullify ( netdev );
 | 
		
	
		
			
			| 428 | 433 |  	netdev_put ( netdev );
 | 
		
	
		
			
			| 429 | 434 |   err_alloc:
 |