fix(ble/bluedroid): Fixed null pointer assert in l2c_link_check_send_pkts

(cherry picked from commit 8150573012)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
This commit is contained in:
Zhang Hai Peng
2025-06-03 12:13:42 +08:00
parent ad5d36257b
commit 30859ceaff

View File

@@ -1084,7 +1084,9 @@ void l2c_link_check_send_pkts (tL2C_LCB *p_lcb, tL2C_CCB *p_ccb, BT_HDR *p_buf)
p_lcb_cur = list_node(p_node);
if (p_lcb_cur == p_lcb) {
p_node = list_next(p_node);
p_lcb = list_node(p_node);
if (p_node) {
p_lcb = list_node(p_node);
}
break;
}
}