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

Commit f7f99184 authored by Paul Colta's avatar Paul Colta Committed by Paul Colța
Browse files

HDMI: Guard mEarcLocalDevice.mEarcStatus with mLock

This fixes an error prone reported in udc-tv-dev cherry-pick.

Test: atest HdmiCecAtomLoggingTest
Bug: 287180347
Change-Id: I4a6b6e62e01d8ee2be17c5620cf926e9c9dd610e
parent cd0a4510
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4689,8 +4689,10 @@ public class HdmiControlService extends SystemService {
    private int getEarcStatus() {
        assertRunOnServiceThread();
        if (mEarcLocalDevice != null) {
            synchronized (mLock) {
                return mEarcLocalDevice.mEarcStatus;
            }
        }
        return HDMI_EARC_STATUS_UNKNOWN;
    }