Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49328469 authored by Chris Manton's avatar Chris Manton
Browse files

stack::l2cap Check for queue exist before append

Bug: 362227274
Test: m .
Flag: EXEMPT, Nullptr check
Change-Id: Ieaaaf9fe93473db429ebfb3d38d0123ef7a4932f
parent cc9e39d6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -855,7 +855,11 @@ void l2c_link_check_send_pkts(tL2C_LCB* p_lcb, uint16_t local_cid, BT_HDR* p_buf
    }

    p_buf->layer_specific = 0;
    if (p_lcb->link_xmit_data_q != NULL) {
      list_append(p_lcb->link_xmit_data_q, p_buf);
    } else {
      log::warn("Unable to queue packet as L2cap module transmit data queue is null");
    }

    if (p_lcb->link_xmit_quota == 0) {
      if (p_lcb->transport == BT_TRANSPORT_LE) {