[tlan] Guard against failure to identify chip

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/58/merge
Michael Brown 2017-03-22 15:28:58 +02:00
parent dea5b74475
commit ad725fa7d9
1 changed files with 2 additions and 0 deletions

View File

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