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

Commit cec308e8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 8730b272 a6cb363a
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);