]> git.proxmox.com Git - qemu.git/blobdiff - bt-vhci.c
dma: Fix stupid typo/thinko
[qemu.git] / bt-vhci.c
index 679c5e05d7da30ef6c03adab098389061e77565d..bbc102985434e1ce217319e5e50ec612acfc39d1 100644 (file)
--- a/bt-vhci.c
+++ b/bt-vhci.c
@@ -19,7 +19,6 @@
 
 #include "qemu-common.h"
 #include "qemu-char.h"
-#include "sysemu.h"
 #include "net.h"
 #include "hw/bt.h"
 
@@ -157,7 +156,7 @@ void bt_vhci_init(struct HCIInfo *info)
         exit(-1);
     }
 
-    s = qemu_mallocz(sizeof(struct bt_vhci_s));
+    s = g_malloc0(sizeof(struct bt_vhci_s));
     s->fd = fd;
     s->info = info ?: qemu_next_hci();
     s->info->opaque = s;