mirror of https://github.com/ARMmbed/mbed-os.git
Fix bounds check using a define instead of table size. The bounds check was incorrectly picking a define that wasn't even the last in the table. It now uses the size of the table.
parent
c7759fe505
commit
0affb73747
|
|
@ -230,7 +230,7 @@ dmCb_t dmCb;
|
||||||
/*************************************************************************************************/
|
/*************************************************************************************************/
|
||||||
static void dmHciEvtCback(hciEvt_t *pEvent)
|
static void dmHciEvtCback(hciEvt_t *pEvent)
|
||||||
{
|
{
|
||||||
WSF_ASSERT(pEvent->hdr.event <= HCI_LE_READ_ANTENNA_INFO_CMD_CMPL_CBACK_EVT);
|
WSF_ASSERT(pEvent->hdr.event < sizeof(dmHciToIdTbl));
|
||||||
|
|
||||||
/* if DM not resetting or resetting but incoming event is HCI reset sequence complete event */
|
/* if DM not resetting or resetting but incoming event is HCI reset sequence complete event */
|
||||||
if (!dmCb.resetting || (pEvent->hdr.event == HCI_RESET_SEQ_CMPL_CBACK_EVT))
|
if (!dmCb.resetting || (pEvent->hdr.event == HCI_RESET_SEQ_CMPL_CBACK_EVT))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue