QCamera2: HAL3: Fix missing pthread unlock
Test: Camera CTS
Bug: 36716469
Change-Id: I6699c3682eec419fb6efb0583e9909e5739476a0
diff --git a/msm8998/QCamera2/HAL3/QCamera3HWI.cpp b/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
index 2337669..d8a9a24 100644
--- a/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
@@ -5737,6 +5737,7 @@
if (channel == NULL) {
LOGE("invalid channel pointer for stream");
assert(0);
+ pthread_mutex_unlock(&mMutex);
return BAD_VALUE;
}
@@ -5797,6 +5798,7 @@
} else {
LOGE("Internal requests not supported on this stream type");
assert(0);
+ pthread_mutex_unlock(&mMutex);
return INVALID_OPERATION;
}
latestRequest->internalRequestList.push_back(requestedStream);