Skip to content

Commit

Permalink
Merge pull request #3087 from brauner/master
Browse files Browse the repository at this point in the history
cgroup: check for non-empty conf
  • Loading branch information
stgraber committed Jul 10, 2019
2 parents d094c18 + d926acf commit fd34369
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lxc/cgroups/cgroup.c
Expand Up @@ -44,6 +44,11 @@ struct cgroup_ops *cgroup_init(struct lxc_conf *conf)
{
struct cgroup_ops *cgroup_ops;

if (!conf) {
ERROR("No valid conf given");
return NULL;
}

cgroup_ops = cgfsng_ops_init(conf);
if (!cgroup_ops) {
ERROR("Failed to initialize cgroup driver");
Expand Down

0 comments on commit fd34369

Please sign in to comment.