From: baohongde Date: Thu, 28 Sep 2017 06:41:31 +0000 (+0800) Subject: component/bt: Fix bug of function btc_ble_set_rand_addr X-Git-Tag: v3.1-dev~217^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27e1db508d3f1f9b00ce1945b10a58aa0948af23;p=esp-idf component/bt: Fix bug of function btc_ble_set_rand_addr --- diff --git a/components/bt/bluedroid/stack/l2cap/l2c_utils.c b/components/bt/bluedroid/stack/l2cap/l2c_utils.c index a8b7a538c9..b40146183f 100644 --- a/components/bt/bluedroid/stack/l2cap/l2c_utils.c +++ b/components/bt/bluedroid/stack/l2cap/l2c_utils.c @@ -1633,13 +1633,16 @@ void l2cu_release_ccb (tL2C_CCB *p_ccb) fixed_queue_free(p_ccb->xmit_hold_q, osi_free_func); + p_ccb->xmit_hold_q = NULL; #if (CLASSIC_BT_INCLUDED == TRUE) fixed_queue_free(p_ccb->fcrb.srej_rcv_hold_q, osi_free_func); fixed_queue_free(p_ccb->fcrb.retrans_q, osi_free_func); fixed_queue_free(p_ccb->fcrb.waiting_for_ack_q, osi_free_func); + p_ccb->fcrb.srej_rcv_hold_q = NULL; + p_ccb->fcrb.retrans_q = NULL; + p_ccb->fcrb.waiting_for_ack_q = NULL; #endif ///CLASSIC_BT_INCLUDED == TRUE - - p_ccb->xmit_hold_q = NULL; + #if (CLASSIC_BT_INCLUDED == TRUE) l2c_fcr_cleanup (p_ccb);