]> git.proxmox.com Git - mirror_qemu.git/blobdiff - spice-qemu-char.c
spapr: Move RMA memory region registration code
[mirror_qemu.git] / spice-qemu-char.c
index 66245599524ce0dec70be2b1315d359fbf0569a4..4518a4d97d58d3235d32cf4f4a92c9108a587f2f 100644 (file)
@@ -268,7 +268,7 @@ static CharDriverState *chr_open(const char *subtype,
     CharDriverState *chr;
     SpiceCharDriver *s;
 
-    chr = g_malloc0(sizeof(CharDriverState));
+    chr = qemu_chr_alloc();
     s = g_malloc0(sizeof(SpiceCharDriver));
     s->chr = chr;
     s->active = false;