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)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 24 Sep 2015 18:28:50 +0000 (11:28 -0700)
commitbb2a4faddd9a7f03d13d37a23eb0da1ef52f9088
tree2805a0630d53224467cd6ef7d54e69b9a7e4dff8
parent282091913b4ee3b26a2f79a630ecdca4e8ca89f6
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