cgroups/cgfsng: rework cgfsng_{get,set}()

parent 6bdf9691
......@@ -2353,6 +2353,9 @@ __cgfsng_ops static int cgfsng_get(struct cgroup_ops *ops, const char *filename,
struct hierarchy *h;
int ret = -1;
if (!ops)
return ret_set_errno(-1, ENOENT);
controller = must_copy_string(filename);
p = strchr(controller, '.');
if (p)
......@@ -2493,6 +2496,9 @@ __cgfsng_ops static int cgfsng_set(struct cgroup_ops *ops,
struct hierarchy *h;
int ret = -1;
if (!ops)
return ret_set_errno(-1, ENOENT);
controller = must_copy_string(key);
p = strchr(controller, '.');
if (p)
......
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