summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/EventControlThread.cpp
diff options
context:
space:
mode:
author Corey Tabaka <eieio@google.com> 2017-07-28 19:46:30 -0700
committer Corey Tabaka <eieio@google.com> 2017-07-28 19:46:30 -0700
commitcf02372a00d4e04066e51747d6bd6636e4aae955 (patch)
treebcf18e6e08bf2517b58c9ccef4ec89ae74d3a10b /services/surfaceflinger/EventControlThread.cpp
parent42d6d5c8051c2f72ea258553eaa40062c1ec15c7 (diff)
Fix missing check on buffer import.
Fix a missing check on the success of importing buffers into the ConsumerQueue. There is a race condition where the producer can invalidate its buffers, for example by resizing, before the consumer has a chance to import the previous buffers. The missing check causes a crash in SurfaceFlinger and VrCore, which are both consumers of application VR surface buffers. Also fix a missing lock around the consumer queues in VR surfaces found during the analysis of this bug. Bug: 64042620 Test: Ran test.apk before and after the fix. Observe stable operation after applying the fix. Change-Id: I416df3ca47978404dcdb53599ddeec9b4bd6fb1a
Diffstat (limited to 'services/surfaceflinger/EventControlThread.cpp')
0 files changed, 0 insertions, 0 deletions