diff --git a/components/bt/bluedroid/hci/hci_hal_h4.c b/components/bt/bluedroid/hci/hci_hal_h4.c index ee738fa4f4..e910a9c139 100644 --- a/components/bt/bluedroid/hci/hci_hal_h4.c +++ b/components/bt/bluedroid/hci/hci_hal_h4.c @@ -365,6 +365,7 @@ static int host_recv_pkt_cb(uint8_t *data, uint16_t len) //pkt = (BT_HDR *)hci_hal_env.allocator->alloc(pkt_size); if (!pkt) { HCI_TRACE_ERROR("%s couldn't aquire memory for inbound data buffer.\n", __func__); + assert(pkt!=NULL); return -1; } pkt->offset = 0;