Revision 7267c094 hw/axis_dev88.c

b/hw/axis_dev88.c
315 315
    }
316 316

  
317 317
    /* Add the two ethernet blocks.  */
318
    dma_eth = qemu_mallocz(sizeof dma_eth[0] * 4); /* Allocate 4 channels.  */
318
    dma_eth = g_malloc0(sizeof dma_eth[0] * 4); /* Allocate 4 channels.  */
319 319
    etraxfs_eth_init(&nd_table[0], 0x30034000, 1, &dma_eth[0], &dma_eth[1]);
320 320
    if (nb_nics > 1) {
321 321
        etraxfs_eth_init(&nd_table[1], 0x30036000, 2, &dma_eth[2], &dma_eth[3]);

Also available in: Unified diff