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

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

Merge "l2cap: Use CHECK for memory allocation errors"

parents af029c0b 3e3644b2
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -814,10 +814,8 @@ void l2c_init(void) {
                                  L2CAP_FIXED_CHNL_SMP_BIT;

  l2cb.rcv_pending_q = list_new(NULL);
  if (l2cb.rcv_pending_q == NULL)
    LOG_ERROR(LOG_TAG,
              "%s unable to allocate memory for link layer control block",
              __func__);
  CHECK(l2cb.rcv_pending_q != NULL);

  l2cb.receive_hold_timer = alarm_new("l2c.receive_hold_timer");
}