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

Commit b15a3ad3 authored by William Escande's avatar William Escande Committed by Android (Google) Code Review
Browse files

Merge "BT: fix NPE issue in bt stack." into tm-qpr-dev

parents a3af4f66 8374340d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -734,6 +734,10 @@ void l2c_lcc_proc_pdu(tL2C_CCB* p_ccb, BT_HDR* p_buf) {

  } else {
    p_data = p_ccb->ble_sdu;
    if (p_data == NULL) {
      osi_free(p_buf);
      return;
    }
    if (p_buf->len > (p_ccb->ble_sdu_length - p_data->len)) {
      L2CAP_TRACE_ERROR("%s: buffer length=%d too big. max=%d. Dropped",
                        __func__, p_data->len,