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

Commit 9fb0b8b3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Avoid integer underflow involving maxFreqCount." am: c282248f am:...

Merge "Avoid integer underflow involving maxFreqCount." am: c282248f am: 81fa7ee9 am: 493dc252

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1558465

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1b4e3e219ae151a213eda63be76c1212b316af7f
parents 04b2bc4c 493dc252
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ static bool initGlobals() {
    struct dirent **dirlist;
    const char basepath[] = "/sys/devices/system/cpu/cpufreq";
    int ret = scandir(basepath, &dirlist, isPolicyFile, comparePolicyFiles);
    if (ret == -1) return false;
    if (ret == -1 || ret == 0) return false;
    gNPolicies = ret;

    std::vector<std::string> policyFileNames;