Merge pull request #3385 from brauner/2020-04-15/fixes

cgroups: fix cgroup limit braino
This commit is contained in:
Stéphane Graber 2020-04-15 17:39:18 -04:00 committed by GitHub
commit 4fa41f3562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2848,7 +2848,7 @@ __cgfsng_ops static bool cgfsng_setup_limits_legacy(struct cgroup_ops *ops,
if (!ops->hierarchies)
return ret_set_errno(false, EINVAL);
if (!pure_unified_layout(ops))
if (pure_unified_layout(ops))
return log_warn_errno(true, EINVAL, "Ignoring legacy cgroup limits on pure cgroup2 system");
sorted_cgroup_settings = sort_cgroup_settings(cgroup_settings);