mxge: initialize firmware length
authorAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Thu, 9 Jul 2009 14:57:18 +0000 (17:57 +0300)
committerAggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Thu, 9 Jul 2009 14:57:18 +0000 (17:57 +0300)
sys/dev/netif/mxge/if_mxge.c

index 4c48905..f70c4b6 100644 (file)
@@ -749,6 +749,7 @@ mxge_load_firmware_helper(mxge_softc_t *sc, uint32_t *limit)
                goto abort_with_buffer;
        }
 #endif
+       fw_len = fw->fw_imglen;
        /* check id */
        hdr_offset = htobe32(*(const uint32_t *)
                             (fw->fw_image + MCP_HEADER_PTR_OFFSET));