commit | 3b3a1c613f3049a13bd4a9d4e6efb2f99520eb9c | [log] [tgz] |
---|---|---|
author | Ranjith Kagathi Ananda <ranjith@codeaurora.org> | Fri Sep 09 19:23:56 2016 -0700 |
committer | Zhijun He <zhijunhe@google.com> | Sat Sep 10 07:19:21 2016 -0700 |
tree | 20ebd1b9957b5d8894c2ba6dad417340910060be | |
parent | 006ea6b7872c25e12abff4a22624666b88d9fe9c [diff] |
QCamera2/HAL3: Mutex lock mBatchSize in captureResultCb Issue: mBatchSize is updated in setHalFpsRange which is called from processCaptureRequest thread. And it is accessed from the callback thread without mutex protection leading to race condition. Fix: Mutex lock around accessing mBatchSize in the callback thread BUG=31399954 Change-Id: I1101d6a58ca9d5506dceec1cb45c9d878eda65f2