aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/usb-bt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb-bt.c b/hw/usb-bt.c
index b9b3463c05..30efb45a1c 100644
--- a/hw/usb-bt.c
+++ b/hw/usb-bt.c
@@ -623,6 +623,8 @@ USBDevice *usb_bt_init(HCIInfo *hci)
{
struct USBBtState *s;
+ if (!hci)
+ return NULL;
s = qemu_mallocz(sizeof(struct USBBtState));
if (!s)
return NULL;