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:
ac9f5fb
)
Fix APR crashes in read rssi callback
author
Jakub Pawlowski
<jpawlowski@google.com>
Fri, 5 Aug 2016 12:32:37 +0000
(
05:32
-0700)
committer
Jakub Pawlowski
<jpawlowski@google.com>
Fri, 5 Aug 2016 12:32:37 +0000
(
05:32
-0700)
When read RSSI timeouts, callback is called with NULL result. This was
causing crash.
Bug:
30562545
Change-Id: If379c2de4ceab48c021601851a8c83f995440460
btif/src/btif_gatt_client.c
patch
|
blob
|
history
diff --git
a/btif/src/btif_gatt_client.c
b/btif/src/btif_gatt_client.c
index
57b5958
..
c70fa49
100644
(file)
--- a/
btif/src/btif_gatt_client.c
+++ b/
btif/src/btif_gatt_client.c
@@
-1023,6
+1023,9
@@
static void bta_track_adv_event_cb(tBTA_DM_BLE_TRACK_ADV_DATA *p_track_adv_data)
static void btm_read_rssi_cb (tBTM_RSSI_RESULTS *p_result)
{
+ if (!p_result)
+ return;
+
btif_gattc_cb_t btif_cb;
bdcpy(btif_cb.bd_addr.address, p_result->rem_bda);