commit | 6049b3f43e9be0f6629a56f932c2394c293cfb76 | [log] [tgz] |
---|---|---|
author | Arun Menon <avmenon@codeaurora.org> | Thu May 01 13:22:23 2014 -0700 |
committer | Arun Menon <avmenon@codeaurora.org> | Wed May 14 12:22:37 2014 -0700 |
tree | ab3ac4ff72eb3471cb17ff59c20a6a411c1d5fb5 | |
parent | 7d0ef3ab114e7050d6e12b5bff7ef8f3046a8ab8 [diff] |
msm: vidc: Fix race condition during concurrent sessions The core->instances list structure is guarded by mutex core->lock, whenever a new video instance is added or deleted from the list. However this list was accessed from certain functions without acquiring the lock, which resulted in race condition, causing the device to crash. Also clean up the core locking mechanism. Change-Id: I6f431bc381d54948611783e19fac853c83a87203 Signed-off-by: Arun Menon <avmenon@codeaurora.org>