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

Commit f7782b38 authored by Amy's avatar Amy Committed by shubang
Browse files

Fix service thread crash in HdmiControlService getActiveSource

ag/5542485

Test: manual
Bug: 119674811
Change-Id: I61b0398caa5dfabbd001c402944f7e4ca74178af
parent 8ba147c2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -857,7 +857,10 @@ public class HdmiControlService extends SystemService {
    int pathToPortId(int path) {
        int mask = 0xF000;
        int finalMask = 0xF000;
        int physicalAddress = getPhysicalAddress();
        int physicalAddress;
        synchronized (mLock) {
            physicalAddress = mPhysicalAddress;
        }
        int maskedAddress = physicalAddress;

        while (maskedAddress != 0) {