From: Lennart Poettering Date: Fri, 1 Nov 2019 09:21:53 +0000 (+0100) Subject: cpuset: fix indentation and log about OOM we otherwise ignore X-Git-Tag: v244-rc1~111^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c259ac9aa207911bd5fd8ebf90da212e14c12d9b;p=thirdparty%2Fsystemd.git cpuset: fix indentation and log about OOM we otherwise ignore --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 95ebafa10d7..ec8a2623142 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); }