diff --git a/src/lxc/lxc_cgroup.c b/src/lxc/lxc_cgroup.c index 8f78d24b837e56b950503292892673e65d813c38..ad254e4934fca9a2b9c1d95aae83822030e98803 100644 --- a/src/lxc/lxc_cgroup.c +++ b/src/lxc/lxc_cgroup.c @@ -501,7 +501,7 @@ virCgroupPtr virLXCCgroupCreate(virDomainDefPtr def, nnicindexes, nicindexes, def->resource->partition, -1, - &cgroup) < 0 || !cgroup) + &cgroup) < 0) goto cleanup; /* setup control group permissions for user namespace */