summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bnx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_bnx.c')
-rw-r--r--sys/dev/pci/if_bnx.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c
index 1ebfb24cd3a..f9dfe5016f5 100644
--- a/sys/dev/pci/if_bnx.c
+++ b/sys/dev/pci/if_bnx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bnx.c,v 1.40 2007/01/20 00:36:07 dlg Exp $ */
+/* $OpenBSD: if_bnx.c,v 1.41 2007/01/21 01:08:03 mcbride Exp $ */
/*-
* Copyright (c) 2006 Broadcom Corporation
@@ -450,7 +450,6 @@ bnx_read_firmware(struct bnx_softc *sc)
return error;
if (size < sizeof (struct bnx_firmware_header)) {
-fail:
free(p, M_DEVBUF);
return EINVAL;
}
@@ -462,11 +461,6 @@ fail:
bnx_COM_b06FwReleaseFix = ntohl(hdr->bnx_COM_b06FwReleaseFix);
bnx_COM_b06FwStartAddr = ntohl(hdr->bnx_COM_b06FwStartAddr);
bnx_COM_b06FwTextAddr = ntohl(hdr->bnx_COM_b06FwTextAddr);
- if (bnx_COM_b06FwTextAddr > size) {
- printf("%s: probably trying to use old firmware\n",
- sc->bnx_dev.dv_xname);
- goto fail;
- }
bnx_COM_b06FwTextLen = ntohl(hdr->bnx_COM_b06FwTextLen);
bnx_COM_b06FwDataAddr = ntohl(hdr->bnx_COM_b06FwDataAddr);
bnx_COM_b06FwDataLen = ntohl(hdr->bnx_COM_b06FwDataLen);