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

Commit 1bd2fc4f authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

lmkd: Close cgroup.event_control file when done writing



After events are specified by writing into cgroup.event_control file
the file should be closed.

Change-Id: Id015e6a7bac2b74bbc8d8793c85f529ee00bdf55
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
parent b333f834
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -860,6 +860,7 @@ static bool init_mp_common(void *event_handler, enum vmpressure_level level) {
    }
    maxevents++;
    mpevfd[level] = evfd;
    close(evctlfd);
    return true;

err: