Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ab7c9c00 authored by Santos Cordon's avatar Santos Cordon
Browse files

Fix potential deadlock with SensorObserver.

Sensor Observer grabs it's own lock (mSOLock) when voting for a display
mode, which then grabs the global DMD lock (mLock).
When printing out the dump() method, DMD holds mLock, then calls into
SensorObserver which grabs the mSOLock.  This can cause a deadlock.

There's no reason to hold mLock when calling SensorObserver's dump()
method, so fix that.

Test: adb shell dumpsys display
Bug: 210086128
Change-Id: Idf685f94b818f04f30bee5b85a503f64d448291a
(cherry picked from commit 8f808c5d)
parent 7fa6c03f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment