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

Commit 91c0a81c authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

L2cap link: Fix a potential nullptr exception am: 07fe29dc

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

Change-Id: I95d919cbb816012cc012ad7a538aa5654852d0f4
parents eec22f97 07fe29dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,8 +211,8 @@ std::shared_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChanne
  auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid);
  if (channel != nullptr) {
    RefreshRefCount();
  }
    channel->local_initiated_ = false;
  }
  return channel;
}