commit | 9735a3ce14a15d0bfafbe7aba06b4047c98491c4 | [log] [tgz] |
---|---|---|
author | Sai Kumar Sanagavarapu <ssanagav@codeaurora.org> | Fri Oct 10 15:00:07 2014 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Oct 20 22:08:48 2014 -0700 |
tree | 1a583b2ec178ddd599a3dabb7486dc59f0dc3f02 | |
parent | 854251df44952f1304f677826f52b7dce16d6202 [diff] |
QCamera2: Fix race condition between streamoff and qbuf. QBuf might accidentally add poll fd again while streamoff is trying to deleted it. This may result in another frame to HAL and may try to post to the cmd thread which is already cleaned up as part of streamoff sequence. To avoid such race condition, add check for cmdthread existence before trying to post msg from polling thread. Change-Id: Ibf0382464b063b02917e70541559cfe66e679979