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

Commit 74952231 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Check argument in PowerProfile.getNumCoresInCpuCluster"

parents cedf2296 dd949c88
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -393,6 +393,9 @@ public class PowerProfile {
    }

    public int getNumCoresInCpuCluster(int cluster) {
        if (cluster < 0 || cluster >= mCpuClusters.length) {
            return 0; // index out of bound
        }
        return mCpuClusters[cluster].numCpus;
    }