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

Commit 2a22ff73 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "bt: don't conditionally dereference an undefined pointer" am: cec308e8

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1458581

Change-Id: Iccca813bc2d6a937009b4bc3db727dea29b92777
parents 6fa49903 cec308e8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -866,6 +866,11 @@ bool L2CA_ReconfigCreditBasedConnsReq(const RawAddress& bda,

  L2CAP_TRACE_API("L2CA_ReconfigCreditBasedConnsReq() ");

  if (lcids.empty()) {
    L2CAP_TRACE_WARNING("L2CAP - no lcids given to %s", __func__);
    return (false);
  }

  for (uint16_t cid : lcids) {
    p_ccb = l2cu_find_ccb_by_cid(NULL, cid);