fix bluedroid deinit crash

This commit is contained in:
zwj
2021-01-15 14:40:57 +08:00
parent d624675087
commit ea42d8e043
3 changed files with 2 additions and 6 deletions

View File

@@ -320,7 +320,7 @@ BOOLEAN btm_update_dev_to_white_list(BOOLEAN to_add, BD_ADDR bd_addr, tBLE_ADDR_
}
}
tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb;
if (to_add && p_cb->white_list_avail_size == 0) {

View File

@@ -896,8 +896,6 @@ void l2c_free_p_lcb_pool(void)
p_lcb = list_node(p_node);
if (p_lcb) {
l2cu_release_lcb (p_lcb);
list_remove(l2cb.p_lcb_pool, p_lcb);
osi_free(p_lcb);
}
}
@@ -912,8 +910,6 @@ void l2c_free_p_ccb_pool(void)
p_ccb = list_node(p_node);
if (p_ccb) {
l2cu_release_ccb (p_ccb);
list_remove(l2cb.p_ccb_pool, p_ccb);
osi_free(p_ccb);
}
}