Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[tlan] Guard against failure to identify chip
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 22, 2017
1 parent dea5b74 commit ad725fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/drivers/net/tlan.c
Expand Up @@ -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;
Expand Down

0 comments on commit ad725fa

Please sign in to comment.