X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=hw%2Feepro100.c;h=4e3c52f50a43cb6dc7a9deb54681f410f8a60e17;hb=7267c0947d7e8ae5dff7bafd932c3bc285f43e5c;hp=a636d309bef74b6d31908cca111460c43695bce4;hpb=14015304b662e8f8ccce46c5a6927af6a14c510b;p=qemu.git diff --git a/hw/eepro100.c b/hw/eepro100.c index a636d309b..4e3c52f50 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -1901,7 +1901,7 @@ static int e100_nic_init(PCIDevice *pci_dev) qemu_register_reset(nic_reset, s); - s->vmstate = qemu_malloc(sizeof(vmstate_eepro100)); + s->vmstate = g_malloc(sizeof(vmstate_eepro100)); memcpy(s->vmstate, &vmstate_eepro100, sizeof(vmstate_eepro100)); s->vmstate->name = s->nic->nc.model; vmstate_register(&pci_dev->qdev, -1, s->vmstate, s);