mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 04:50:25 +03:00
[tlan] Guard against failure to identify chip
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user