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

Skip to content
Commit 96587ffd authored by Jie Cheng's avatar Jie Cheng Committed by Linux Build Service Account
Browse files

Sensors: Fix the mLock dead lock when enable sensor fail

SensorSeverce::enable will get the mLock, if enable the sensor
fail it will call the cleanupWithDisable and get the mLock too.
This will be a dead lock and crash the Android framewor. The
mLock should be used by the disable function but not used in
the cleanupWithDisable function.

Change-Id: I789fe7bf0ef944ae8852016bea92e8a373f469cd
parent 6524af3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment