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

Commit 63562c15 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove memory reference to invalid mem in error log" into oc-dev

parents 155729dd 5f689d0e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -317,8 +317,7 @@ bool smp_send_msg_to_L2CAP(BD_ADDR rem_bda, BT_HDR* p_toL2CAP) {
  l2cap_ret = L2CA_SendFixedChnlData(fixed_cid, rem_bda, p_toL2CAP);
  if (l2cap_ret == L2CAP_DW_FAILED) {
    smp_cb.total_tx_unacked -= 1;
    SMP_TRACE_ERROR("SMP   failed to pass msg:0x%0x to L2CAP",
                    *((uint8_t*)(p_toL2CAP + 1) + p_toL2CAP->offset));
    SMP_TRACE_ERROR("SMP failed to pass msg to L2CAP");
    return false;
  } else
    return true;