X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/dbf352ad6e55dc7b40c62b402289164265a4f17c..4f47f0f82eccbda44bac929df94fa244bf3452bd:/bt-host.c diff --git a/bt-host.c b/bt-host.c index 095254ddc6..0d3ad28e8c 100644 --- a/bt-host.c +++ b/bt-host.c @@ -130,6 +130,7 @@ static void bt_host_read(void *opaque) pktlen = MIN(pkt[2] + 3, s->len); s->len -= pktlen; pkt += pktlen; + break; default: bad_pkt: @@ -177,7 +178,7 @@ struct HCIInfo *bt_host_hci(const char *id) } # endif - s = qemu_mallocz(sizeof(struct bt_host_hci_s)); + s = g_malloc0(sizeof(struct bt_host_hci_s)); s->fd = fd; s->hci.cmd_send = bt_host_cmd; s->hci.sco_send = bt_host_sco;