cgroups: vet parameters more strictly

parent 0464dec3
...@@ -2664,8 +2664,8 @@ __cgfsng_ops static int cgfsng_set(struct cgroup_ops *ops, ...@@ -2664,8 +2664,8 @@ __cgfsng_ops static int cgfsng_set(struct cgroup_ops *ops,
struct hierarchy *h; struct hierarchy *h;
int ret = -1; int ret = -1;
if (!ops) if (!ops || !key || !value || !name || !lxcpath)
return ret_set_errno(-1, ENOENT); return ret_errno(ENOENT);
controller = must_copy_string(key); controller = must_copy_string(key);
p = strchr(controller, '.'); p = strchr(controller, '.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment