mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
fix hci sco crash bug for HFP
This commit is contained in:
@@ -321,6 +321,7 @@ static void bta_ag_sco_read_cback(UINT16 sco_inx, BT_HDR *p_data, tBTM_SCO_DATA_
|
|||||||
|
|
||||||
/* Callout function must free the data. */
|
/* Callout function must free the data. */
|
||||||
bta_ag_sco_co_in_data(p_data, status);
|
bta_ag_sco_co_in_data(p_data, status);
|
||||||
|
osi_free(p_data);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
@@ -152,7 +152,6 @@ static void btu_hci_msg_process(void *param)
|
|||||||
case BT_EVT_TO_BTU_HCI_SCO:
|
case BT_EVT_TO_BTU_HCI_SCO:
|
||||||
#if BTM_SCO_INCLUDED == TRUE
|
#if BTM_SCO_INCLUDED == TRUE
|
||||||
btm_route_sco_data (p_msg);
|
btm_route_sco_data (p_msg);
|
||||||
osi_free(p_msg);
|
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user