From: Christian Brauner Date: Sat, 7 Dec 2019 21:12:00 +0000 (+0100) Subject: cgroups/cgfsng: don't dereference NULL-pointer X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75bb976e8f71cd67b9c8e6abd20bdf10c578ce3e;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 071898b7f..7511477a8 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;