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: Jayant Chowdhary <jchowdhary@google.com> (cherry picked from commit 5e2cd30c)
Loading
Please register or sign in to comment