Skip to content

Commit

Permalink
Merge pull request #350 from giuseppe/fix-condition-oom
Browse files Browse the repository at this point in the history
libcrun: fix OOM check on cgroupv2
  • Loading branch information
rhatdan authored Apr 30, 2020
2 parents 6689af4 + f099c03 commit 077bebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcrun/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -2187,7 +2187,7 @@ write_memory_resources (int dirfd, bool cgroup2, runtime_spec_schema_config_linu
if (UNLIKELY (ret < 0))
return ret;
}
if (memory->disable_oom_killer_present)
if (memory->disable_oom_killer)
{
if (cgroup2)
return crun_make_error (err, 0, "cannot disable OOM killer with cgroupv2");
Expand Down

0 comments on commit 077bebb

Please sign in to comment.