Revision 7267c094 hw/omap_mmc.c
b/hw/omap_mmc.c | ||
---|---|---|
576 | 576 |
{ |
577 | 577 |
int iomemtype; |
578 | 578 |
struct omap_mmc_s *s = (struct omap_mmc_s *) |
579 |
qemu_mallocz(sizeof(struct omap_mmc_s));
|
|
579 |
g_malloc0(sizeof(struct omap_mmc_s));
|
|
580 | 580 |
|
581 | 581 |
s->irq = irq; |
582 | 582 |
s->dma = dma; |
... | ... | |
602 | 602 |
{ |
603 | 603 |
int iomemtype; |
604 | 604 |
struct omap_mmc_s *s = (struct omap_mmc_s *) |
605 |
qemu_mallocz(sizeof(struct omap_mmc_s));
|
|
605 |
g_malloc0(sizeof(struct omap_mmc_s));
|
|
606 | 606 |
|
607 | 607 |
s->irq = irq; |
608 | 608 |
s->dma = dma; |
Also available in: Unified diff