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

Commit 7df80dc9 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

stack::l2cap Check for queue exist before append am: 49328469

parents 4796323f 49328469
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) {