mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +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++;
|
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
Block a user