aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/cgroup.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 35daf892b6e6..250def0694b4 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2542,11 +2542,13 @@ static int cgroup_subtree_control_write(struct cgroup_subsys_state *dummy_css,
2542 int ssid, ret; 2542 int ssid, ret;
2543 2543
2544 /* 2544 /*
2545 * Parse input - white space separated list of subsystem names 2545 * Parse input - space separated list of subsystem names prefixed
2546 * prefixed with either + or -. 2546 * with either + or -.
2547 */ 2547 */
2548 p = buffer; 2548 p = buffer;
2549 while ((tok = strsep(&p, " \t\n"))) { 2549 while ((tok = strsep(&p, " "))) {
2550 if (tok[0] == '\0')
2551 continue;
2550 for_each_subsys(ss, ssid) { 2552 for_each_subsys(ss, ssid) {
2551 if (ss->disabled || strcmp(tok + 1, ss->name)) 2553 if (ss->disabled || strcmp(tok + 1, ss->name))
2552 continue; 2554 continue;