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

Commit ad440cef authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: acquire mutex in getDeviceConnecitonState

Add missing mutex locking in
AudioPolicyService::getDeviceConnectionState()

Bug: 215261795
Test: atest audiopolicy_tests
Change-Id: I9b13376e9d43e83bff3e21d2bb0455e1b78dc507
parent 0fe05c41
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -166,6 +166,7 @@ Status AudioPolicyService::getDeviceConnectionState(const AudioDevice& deviceAid
                        AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE));
        return Status::ok();
    }
    Mutex::Autolock _l(mLock);
    AutoCallerClear acc;
    *_aidl_return = VALUE_OR_RETURN_BINDER_STATUS(
            legacy2aidl_audio_policy_dev_state_t_AudioPolicyDeviceState(