]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgroups: prevent segfault in cgfsng 1305/head
authorChristian Brauner <christian.brauner@canonical.com>
Wed, 16 Nov 2016 15:43:20 +0000 (16:43 +0100)
committerChristian Brauner <christian.brauner@canonical.com>
Thu, 17 Nov 2016 15:32:28 +0000 (16:32 +0100)
commita7b0cc4c9181b2c9b4952f34a41def5a41f09a48
tree1af98c4fad264179c313ce196f92ef3f08ff1525
parent471a304df4fff53b8fdf63248c1fdfca56428473
cgroups: prevent segfault in cgfsng

When we set LXC_DEBUG_CGFSNG=1 we print out info about detected cgroup
hierarchies. When there's no named cgroup mounted we need to make sure that we
don't try to index an unallocated pointer.

Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
src/lxc/cgroups/cgfsng.c