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

Skip to content
Commit 1e9ef4cc authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

Camera: Fix deadlock caused by ordering of mStatusLock and mCameraStatesLock.



The following lock order exists in addListenerHelper:
mCameraStatesLock -> mStatusLock. In CameraDeviceClient::disconnect()
the previous lock ordering was mStatusLock->mCameraStates lock. Move the
collection of logical camera ids out to avoid holding mCameraStatesLock
and mStatus lock  in CameraService::updateStatus.

Bug: 162192331

Test: Camera cts
Test: GCA (basic validity)

Change-Id: Ie5f9f924a77f7073264e9b7fce739c74c98fb57a
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
(cherry picked from commit 5e2cd30c)
parent cd2b79a8
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