mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-01 22:02:33 +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;
|
struct cgroup_ops *cgroup_ops;
|
||||||
|
|
||||||
|
if (!conf) {
|
||||||
|
ERROR("No valid conf given");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
cgroup_ops = cgfsng_ops_init(conf);
|
cgroup_ops = cgfsng_ops_init(conf);
|
||||||
if (!cgroup_ops) {
|
if (!cgroup_ops) {
|
||||||
ERROR("Failed to initialize cgroup driver");
|
ERROR("Failed to initialize cgroup driver");
|
||||||
|
Loading…
Reference in New Issue
Block a user