Explorar el Código

[tlan] Guard against failure to identify chip

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 7 años
padre
commit
ad725fa7d9
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      src/drivers/net/tlan.c

+ 2
- 0
src/drivers/net/tlan.c Ver fichero

@@ -808,6 +808,8 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
808 808
 		}
809 809
 		i++;
810 810
 	}
811
+	if (chip_idx == -1)
812
+		return 0;
811 813
 
812 814
 	priv->vendor_id = pci->vendor;
813 815
 	priv->dev_id = pci->device;

Loading…
Cancelar
Guardar