Re: [PATCH 4/7] cgroup: update and fix parsing of "cgroup.subtree_control"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/kernel/cgroup.c b/kernel/cgroup.c
> index 35daf89..b81e7c0 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,
>  	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')

if (tok[0] == '\0')

> +			continue;

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux