summaryrefslogtreecommitdiffstats
path: root/camera/inc
diff options
context:
space:
mode:
authorAkwasi Boateng <akwasi.boateng@ti.com>2011-10-29 14:25:50 -0500
committerIliyan Malchev <malchev@google.com>2011-12-01 10:40:03 -0800
commitde40e0063648ad3ce8624e7d63639ecf0b8f80b2 (patch)
tree902da10a99878663d9c0156382dcadc4587155d1 /camera/inc
parent5b4aa4034b29df55df71f7bd4901f893db8be906 (diff)
downloadhardware_ti_omap4-de40e0063648ad3ce8624e7d63639ecf0b8f80b2.zip
hardware_ti_omap4-de40e0063648ad3ce8624e7d63639ecf0b8f80b2.tar.gz
hardware_ti_omap4-de40e0063648ad3ce8624e7d63639ecf0b8f80b2.tar.bz2
CameraHAL: Avoids a possible deadlock in AppCallbackNotifier
- 'disableMsgType()' was querying CameraHal for enabled message types through 'msgTypeEnabled()'. This method will lock 'mLock' in CameraHal. On the other hand 'takePicture()' inside CameraHal will also lock 'mLock' before execution. If preview callbacks are enabled before image capture, then 'takePicture()' will call AppCallbackNotifier's 'disableMsgType()', which will try to lock 'mLock' again. Solution, a query to CameraHal for enabled message types is not needed inside 'disableMsgType()' because the passed argument 'msgType' already contains all the needed information. Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com> Change-Id: Ia4b7634ce21b8243f08d9124823c77e6bde84a8d
Diffstat (limited to 'camera/inc')
0 files changed, 0 insertions, 0 deletions