]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cpuset: fix indentation and log about OOM we otherwise ignore
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Nov 2019 09:21:53 +0000 (10:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Nov 2019 09:21:53 +0000 (10:21 +0100)
src/core/cgroup.c

index 95ebafa10d7cafbd53c0fbdff08f2d6b48b3fe40..ec8a26231420b9789683be20aea007020d92f726 100644 (file)
@@ -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);
 }