summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-08-23 19:09:29 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-08-23 19:09:29 +0000
commitb17936d3b92eaad51df2eac594800b81d0985afb (patch)
treea3ac0d059738d47b7d9ecabc2873690de1e9d869
parent67b5be442eb7966f2e4fe249a13af55505ef947a (diff)
parent1c4294cad28cb37256a47bff332c8c86b9595156 (diff)
downloadshamu-nougat-mr1.5-release.tar.gz
Merge cherrypicks of [2780919, 2780841, 2780458, 2780892, 2780893, 2781183, 2781184, 2780842, 2780843, 2780920, 2780921, 2780922, 2780923, 2780924, 2780925, 2780926, 2780927, 2780894, 2780895, 2781304, 2780844, 2780845, 2780846, 2781209] into nyc-mr1-security-e-releaseandroid-7.1.1_r55nougat-mr1.5-release
Change-Id: I6a31d4021fb023fc5ae2b78095a094279ab565be
-rw-r--r--camera/QCamera2/HAL3/QCamera3HWI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/camera/QCamera2/HAL3/QCamera3HWI.cpp b/camera/QCamera2/HAL3/QCamera3HWI.cpp
index 1a9079a2..08b57342 100644
--- a/camera/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/camera/QCamera2/HAL3/QCamera3HWI.cpp
@@ -1288,6 +1288,7 @@ int QCamera3HardwareInterface::configureStreams(
newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS;
} else {
ALOGE("%s: Error, Unknown stream type", __func__);
+ pthread_mutex_unlock(&mMutex);
return -EINVAL;
}
@@ -2347,6 +2348,7 @@ int QCamera3HardwareInterface::processCaptureRequest(
} else if (mFirstRequest || mCurrentRequestId == -1){
ALOGE("%s: Unable to find request id field, \
& no previous id available", __func__);
+ pthread_mutex_unlock(&mMutex);
return NAME_NOT_FOUND;
} else {
CDBG("%s: Re-using old request id", __func__);