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

Skip to content
Commit 7fe6c425 authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Avoid recursive deadlock during device state changes

Device state change notifications are currently triggered while
holding 'mInterfaceMutex'. In case the camera provider tries
to add or remove a certain device/devices, then the provider
manager will try to recursively obtain the same 'mInterfaceMutex'.
Also avoid holding the 'mServiceLock' when notifying the
camera provider manager, access to its public interface
is already synchronized via 'mInterfaceMutex'.

Bug: 199240726
Test: Camera CTS
Change-Id: I9c71cc93ab91adc905488f954294b641d107de72
parent b7457908
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