diff options
| author | Martijn Coenen <maco@google.com> | 2017-11-02 14:00:41 +0100 |
|---|---|---|
| committer | Martijn Coenen <maco@google.com> | 2017-11-02 14:00:41 +0100 |
| commit | b41e87ae680beefd0d39a127d1ea0b2614caa5f9 (patch) | |
| tree | 712c846dc37ddd21af89ede396eaf7ac84c6e40d /opengl/tests/gl_basic/gl_basic.cpp | |
| parent | bf26c1660fbd1633cfffa72eb01b2973a89a1ea5 (diff) | |
SensorService: fix potential mutex use-before-init.
Since mRegistered is declared before mLock, it's possible to
receive a service notification callback on a binder thread
before mLock has been initialized. Prevent this by registering
in the constructor body, when we are guaranteed that the mutex
has been initialized.
Bug: 68765551
Test: many reboots on sailfish
Change-Id: I7beedc72be2a4aae961c546402f7016eacaeb3c0
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
