summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-11-01 10:21:53 +0100
committerLennart Poettering <lennart@poettering.net>2019-11-01 10:21:53 +0100
commitc259ac9aa207911bd5fd8ebf90da212e14c12d9b (patch)
tree161b591e991e17820cd3de2c030d03d79a7d2f4f
parent85c3b2789115a9e814326b869224ed3d16dbd170 (diff)
downloadsystemd-c259ac9aa207911bd5fd8ebf90da212e14c12d9b.tar.gz
cpuset: fix indentation and log about OOM we otherwise ignore
-rw-r--r--src/core/cgroup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 95ebafa10d..ec8a262314 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -972,8 +972,10 @@ static void cgroup_apply_unified_cpuset(Unit *u, const CPUSet *cpus, const char
_cleanup_free_ char *buf = NULL;
buf = cpu_set_to_range_string(cpus);
- if (!buf)
- return;
+ if (!buf) {
+ log_oom();
+ return;
+ }
(void) set_attribute_and_warn(u, "cpuset", name, buf);
}