cgroup: set 'start' with the right value in cgroup_path.
authorTao Ma <boyu.mt@taobao.com>
Thu, 8 Nov 2012 13:36:38 +0000 (21:36 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 8 Nov 2012 14:23:02 +0000 (06:23 -0800)
commit316eb661f125397d46f16f94e3c81ad3dc4c1233
tree6b3298bff5f264a7046e7bdac2a0ffcd04fbadc8
parent4b1c7840b7d01b14a1a00fa0e61b761d4391ba67
cgroup: set 'start' with the right value in cgroup_path.

'start' is set to buf + buflen and do the '--' immediately.
Just set it to 'buf + buflen - 1' directly.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c