]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[tlan] Guard against failure to identify chip
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 13:28:58 +0000 (15:28 +0200)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 13:28:58 +0000 (15:28 +0200)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/tlan.c

index 7742f6d80975211aeeec04bf9e93548a56752022..0e85b35b63a5931d8d1d7b623e952a710d3e4d6c 100644 (file)
@@ -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;