OSDN Git Service

DO NOT MERGE btm_proc_smp_cback: Don't access p_dev_rec if freed
authorHansong Zhang <hsz@google.com>
Tue, 22 Jan 2019 21:46:47 +0000 (13:46 -0800)
committerHansong Zhang <hsz@google.com>
Tue, 22 Jan 2019 21:46:47 +0000 (13:46 -0800)
commit74c6d501ce55e7bbce4129fae26bd0b5f802a7fc
tree0f922ab6dd5753db9b6bb2b68fc85f21f27cdd01
parent425dd8d57530c9ae8257cd4a21b31c140d75d67a
DO NOT MERGE btm_proc_smp_cback: Don't access p_dev_rec if freed

In btm_proc_smp_cback(), return after p_dev_rec is freed in the middle
to prevent use after free

Bug: 120612744
Test: Use ASAN build; connect to a LE device and wait for timeout
Change-Id: I09aa1cf1d1c835146b62d0f4989aeedfb885d95b
stack/btm/btm_ble.c