Component/bt: fix write char crash after disconnection
This commit is contained in:
parent
5412ccbcb1
commit
e94b130ede
1 changed files with 1 additions and 1 deletions
|
@ -1845,7 +1845,7 @@ BOOLEAN L2CA_CheckIsCongest(UINT16 fixed_cid, UINT16 handle)
|
||||||
tL2C_LCB *p_lcb;
|
tL2C_LCB *p_lcb;
|
||||||
p_lcb = l2cu_find_lcb_by_handle(handle);
|
p_lcb = l2cu_find_lcb_by_handle(handle);
|
||||||
|
|
||||||
if (p_lcb != NULL) {
|
if (p_lcb != NULL && p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] != NULL) {
|
||||||
return p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent;
|
return p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->cong_sent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue