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:
parent
e57c3d313d
commit
ab05d67d86
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue