Browse Source

[tlan] Guard against failure to identify chip

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 years ago
parent
commit
ad725fa7d9
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/drivers/net/tlan.c

+ 2
- 0
src/drivers/net/tlan.c View File

@@ -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…
Cancel
Save