summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMichael Brown2017-03-22 14:28:58 +0100
committerMichael Brown2017-03-22 14:28:58 +0100
commitad725fa7d9ad6dfa1167885394b5c6463820207f (patch)
treeda8e9f1edf9992e4944351315e169ff42f2e8999 /src/drivers
parent[hermon] Assert that mapping length is non-zero (diff)
downloadipxe-ad725fa7d9ad6dfa1167885394b5c6463820207f.tar.gz
ipxe-ad725fa7d9ad6dfa1167885394b5c6463820207f.tar.xz
ipxe-ad725fa7d9ad6dfa1167885394b5c6463820207f.zip
[tlan] Guard against failure to identify chip
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/net/tlan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/net/tlan.c b/src/drivers/net/tlan.c
index 7742f6d8..0e85b35b 100644
--- a/src/drivers/net/tlan.c
+++ b/src/drivers/net/tlan.c
@@ -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;