summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueConsumer.cpp
diff options
context:
space:
mode:
author Fabien Sanglard <sanglardf@google.com> 2016-11-15 00:39:18 +0000
committer android-build-merger <android-build-merger@google.com> 2016-11-15 00:39:18 +0000
commite5c91fe2e2efdac5af4394253b696d46742446ee (patch)
tree510f2bb4d945060670989abcf32606286740388c /libs/gui/BufferQueueConsumer.cpp
parent2cb14836ac536fe85bd2293a69a92de3d3768a62 (diff)
parent2d8a2432e04234d9edbb3b099f9bbbaa36ad4843 (diff)
Fix SF security vulnerability: 32660278
am: 2d8a2432e0 Change-Id: Ia5f419d7d113692f5d52b483f70ca09589333e13
Diffstat (limited to 'libs/gui/BufferQueueConsumer.cpp')
-rw-r--r--libs/gui/BufferQueueConsumer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/BufferQueueConsumer.cpp b/libs/gui/BufferQueueConsumer.cpp
index d62eaf716f..bc6f3f012a 100644
--- a/libs/gui/BufferQueueConsumer.cpp
+++ b/libs/gui/BufferQueueConsumer.cpp
@@ -517,6 +517,7 @@ status_t BufferQueueConsumer::setTransformHint(uint32_t hint) {
}
sp<NativeHandle> BufferQueueConsumer::getSidebandStream() const {
+ Mutex::Autolock lock(mCore->mMutex);
return mCore->mSidebandStream;
}