OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00c4f65
)
Fix crash in l2cble_start_conn_update
author
Jakub Pawlowski
<jpawlowski@google.com>
Fri, 13 Oct 2017 16:51:06 +0000
(09:51 -0700)
committer
Jakub Pawlowski
<jpawlowski@google.com>
Fri, 13 Oct 2017 20:00:05 +0000
(13:00 -0700)
Bug:
67774334
Test: compilation
Change-Id: I42ec986c6c5f3fe81f507596bf1df05dcf3ec0ba
(cherry picked from
5e8d54e6c26c3bc8ced932bb9c455bbbad57a9db
)
stack/l2cap/l2c_ble.cc
patch
|
blob
|
history
diff --git
a/stack/l2cap/l2c_ble.cc
b/stack/l2cap/l2c_ble.cc
index
f611b78
..
6c7820f
100644
(file)
--- a/
stack/l2cap/l2c_ble.cc
+++ b/
stack/l2cap/l2c_ble.cc
@@
-447,6
+447,10
@@
void l2cble_conn_comp(uint16_t handle, uint8_t role, const RawAddress& bda,
static void l2cble_start_conn_update(tL2C_LCB* p_lcb) {
uint16_t min_conn_int, max_conn_int, slave_latency, supervision_tout;
tACL_CONN* p_acl_cb = btm_bda_to_acl(p_lcb->remote_bd_addr, BT_TRANSPORT_LE);
+ if (!p_acl_cb) {
+ LOG(ERROR) << "No known connection ACL for " << p_lcb->remote_bd_addr;
+ return;
+ }
// TODO(armansito): The return value of this call wasn't being used but the
// logic of this function might be depending on its side effects. We should