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

Commit 3798a9bc 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 am: 2a22ff73

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

Change-Id: Ie852db4d5574bac45b2e04778f6f03dbe7bfbadd
parents 0d25fbeb 2a22ff73
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);