]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups/cgfsng: don't dereference NULL-pointer
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 7 Dec 2019 21:12:00 +0000 (22:12 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 7 Dec 2019 23:13:37 +0000 (00:13 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 2eb0d0aee6fdb2cfa59e15b0ede6deaf8c1583d4..97dd0b3741c681079f0db9152471d25d83ef660d 100644 (file)
@@ -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;