[tlan] Guard against failure to identify chip
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
dea5b74475
commit
ad725fa7d9
|
@ -808,6 +808,8 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
if (chip_idx == -1)
|
||||||
|
return 0;
|
||||||
|
|
||||||
priv->vendor_id = pci->vendor;
|
priv->vendor_id = pci->vendor;
|
||||||
priv->dev_id = pci->device;
|
priv->dev_id = pci->device;
|
||||||
|
|
Reference in New Issue