OSDN Git Service

Fix PAN crash due to fd mismatch
authorNitin Shivpure <nshivpur@codeaurora.org>
Sun, 6 Sep 2015 09:34:01 +0000 (15:04 +0530)
committerScott James Remnant <keybuk@google.com>
Mon, 19 Oct 2015 17:36:23 +0000 (10:36 -0700)
commit2181f1a4a428926da214b94327c3bcef9d283522
tree66367689173c05d419312a6e0546ae7de9e3aade
parent70ae7de9451e3dc074a048ba98b672a6ba3a4551
Fix PAN crash due to fd mismatch

A case, where tap read thread is always exist, Sometimes
data packets get recieved on older fd, which is not available.
which is causing assert due to fd mismatch in race condition.
when next pan connection is immediately available. If last pan
connection gets disconnected, then tap_read_thread should be
destroyed in btif context to fix this issue.

Bug: 24093456
Change-Id: Ic1053200a7be4c2091d6c394634831ca3fbd61df
bta/pan/bta_pan_act.c
btif/src/btif_pan.c