From: Christian Brauner Date: Sat, 7 Dec 2019 21:12:00 +0000 (+0100) Subject: cgroups/cgfsng: don't dereference NULL-pointer X-Git-Tag: lxc-4.0.0~78^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e8703a41195c6b7e45b16efdfb36b3f266b8fe7;p=thirdparty%2Flxc.git cgroups/cgfsng: don't dereference NULL-pointer Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 2eb0d0aee..97dd0b374 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1359,7 +1359,7 @@ __cgfsng_ops static inline bool cgfsng_monitor_create(struct cgroup_ops *ops, return ret_set_errno(false, ERANGE); ops->monitor_cgroup = move_ptr(monitor_cgroup); - return log_info(true, "The monitor process uses \"%s\" as cgroup", monitor_cgroup); + return log_info(true, "The monitor process uses \"%s\" as cgroup", ops->monitor_cgroup); } /* Try to create the same cgroup in all hierarchies. Start with cgroup_pattern;