|
@@ -2542,11 +2542,13 @@ static int cgroup_subtree_control_write(struct cgroup_subsys_state *dummy_css,
|
|
|
int ssid, ret;
|
|
|
|
|
|
/*
|
|
|
- * Parse input - white space separated list of subsystem names
|
|
|
- * prefixed with either + or -.
|
|
|
+ * Parse input - space separated list of subsystem names prefixed
|
|
|
+ * with either + or -.
|
|
|
*/
|
|
|
p = buffer;
|
|
|
- while ((tok = strsep(&p, " \t\n"))) {
|
|
|
+ while ((tok = strsep(&p, " "))) {
|
|
|
+ if (tok[0] == '\0')
|
|
|
+ continue;
|
|
|
for_each_subsys(ss, ssid) {
|
|
|
if (ss->disabled || strcmp(tok + 1, ss->name))
|
|
|
continue;
|