OSDN Git Service

Fix a deadlock in wifi_cleanup [DO NOT MERGE]
authorVinit Deshpande <vinitd@google.com>
Fri, 5 Jun 2015 03:01:03 +0000 (20:01 -0700)
committerVinit Deshpande <vinitd@google.com>
Fri, 5 Jun 2015 18:32:42 +0000 (11:32 -0700)
commit74d118dc34771593b3892d7fb72b5b8e07f4da63
tree99af89436ff233329307333b7da67b58d3a53eb3
parent3df1ce6069291d0d3264ebcef430e6b3c75e7e14
Fix a deadlock in wifi_cleanup [DO NOT MERGE]

pthread_mutex isn't re-entrant; and results in a hang
if called second time from the same thread. This change
ensures that it is locked only once.

Bug: 21627368
Change-Id: I9c28c1df240316c2a7eafdefa990b9582bc05a9a
bcmdhd/wifi_hal/wifi_hal.cpp