Merge pull request #3087 from brauner/master

cgroup: check for non-empty conf
This commit is contained in:
Stéphane Graber 2019-07-10 10:53:45 -04:00 committed by GitHub
commit fd34369e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");