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

Commit 41e640e4 authored by Greg Kaiser's avatar Greg Kaiser Committed by android-build-merger
Browse files

Merge "bta_jv_act: Avoid potential NULL dereference"

am: d1327a5f

Change-Id: I6dcb774ab24978fb56d9d1e9c502e4fccad3dfd8
parents f41e6de8 d1327a5f
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -2117,11 +2117,12 @@ static void fcchan_data_cbk(uint16_t chan, const RawAddress& bd_addr,
  if (tc) {
  if (tc) {
    // try to find an open socked for that addr and channel
    // try to find an open socked for that addr and channel
    t = fcclient_find_by_addr(tc->clients, &bd_addr);
    t = fcclient_find_by_addr(tc->clients, &bd_addr);
  }
  if (!t) {
  if (!t) {
    // no socket -> drop it
    // no socket -> drop it
    return;
    return;
  }
  }
  }



  sock_cback = t->p_cback;
  sock_cback = t->p_cback;
  sock_id = t->l2cap_socket_id;
  sock_id = t->l2cap_socket_id;