OSDN Git Service

Fix a deadlock in wifi_cleanup
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 03:01:03 +0000 (20:01 -0700)
commit974df1c535fa4aa5c191d47877aa27c79fad0263
treeec531a5bcf201623d08db6044d8f66801b8c8977
parent79c41bc9ff10a322cf6cacc51b80707d5ba5a4ee
Fix a deadlock in wifi_cleanup

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