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

Commit 522a023c authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "l2cap: Use CHECK for memory allocation errors"

am: ad713816

Change-Id: I7464be3483402908d397eda4220c295cbc165669
parents 94574d08 ad713816
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -814,10 +814,8 @@ void l2c_init(void) {
                                  L2CAP_FIXED_CHNL_SMP_BIT;
                                  L2CAP_FIXED_CHNL_SMP_BIT;


  l2cb.rcv_pending_q = list_new(NULL);
  l2cb.rcv_pending_q = list_new(NULL);
  if (l2cb.rcv_pending_q == NULL)
  CHECK(l2cb.rcv_pending_q != NULL);
    LOG_ERROR(LOG_TAG,

              "%s unable to allocate memory for link layer control block",
              __func__);
  l2cb.receive_hold_timer = alarm_new("l2c.receive_hold_timer");
  l2cb.receive_hold_timer = alarm_new("l2c.receive_hold_timer");
}
}