lmkd: Close cgroup.event_control file when done writing

(cherry pick from commit 1bd2fc4fb6)

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

Change-Id: Id015e6a7bac2b74bbc8d8793c85f529ee00bdf55
Merged-In: Id015e6a7bac2b74bbc8d8793c85f529ee00bdf55
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
This commit is contained in:
Suren Baghdasaryan 2018-01-04 08:54:53 -08:00
parent e57c3d313d
commit ab05d67d86

View file

@ -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: