diff options
| author | 2017-07-28 19:46:30 -0700 | |
|---|---|---|
| committer | 2017-07-28 19:46:30 -0700 | |
| commit | cf02372a00d4e04066e51747d6bd6636e4aae955 (patch) | |
| tree | bcf18e6e08bf2517b58c9ccef4ec89ae74d3a10b /services/surfaceflinger/EventControlThread.cpp | |
| parent | 42d6d5c8051c2f72ea258553eaa40062c1ec15c7 (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