mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-31 07:12:45 +00:00
Merge pull request #3087 from brauner/master
cgroup: check for non-empty conf
This commit is contained in:
commit
fd34369e10
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user