History log of /hardware/qcom/gps/msm8909/utils/MsgTask.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4eda8e1eabead3a9115bdd9cedd7e336ed431dbe 23-Nov-2016 Dante Russo <drusso@codeaurora.org> fixing a race condition on MsgTask::destroy()

when MsgTask::destroy() happens, msg_q_unblock() triggers
the running thread to come out from blocking state. A race
condition may happen such that that thread may complete
first, causing msgTask obj to be already deleted. A next
allocation may change the value at MsgTask::mThread. Then
when control comes back to destroy(), it may try to check
mThread and call delete on it to crash the program.

mThread is a heap obj, so it is possible to delete it after
the hosting msgTask obj is deleted. We just have to keep
its value on the stack before calling msg_q_unblock().

Change-Id: If15884815eea05fbfa523ec92aa300ed21ef897c
CR-Fixed: 1091530
/hardware/qcom/gps/msm8909/utils/MsgTask.cpp
e7c98642e1e156ea6cde1238cd0006f669cfb696 06-Jan-2016 Uday Kishore Pasupuleti <upasupul@codeaurora.org> gps: msm8909w caf release LW.BR.1.0-00410-8x09w.0

MSM8909w GPS HAL code copied from CAF release
LW.BR.1.0-00410-8x09w.0

b61731a Move some debug logs to verbose.
78bb132 Location: reduce memory footprint
0b4a33b missing util header file
56a5a75 set LPP CP as default
9336256 Add support for new sockaddr_storage struct
9b3aa46 another potential race condition

Fixed makefiles to be compatible with PDK without kernel source

Change-Id: I6e73cc7db9d7bdc6a478a3c6b14922578e315dce
/hardware/qcom/gps/msm8909/utils/MsgTask.cpp