diff options
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index ed19afd9e3fe..c9483d8f6140 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -1798,13 +1798,13 @@ out: | |||
1798 | int cgroup_attach_task_all(struct task_struct *from, struct task_struct *tsk) | 1798 | int cgroup_attach_task_all(struct task_struct *from, struct task_struct *tsk) |
1799 | { | 1799 | { |
1800 | struct cgroupfs_root *root; | 1800 | struct cgroupfs_root *root; |
1801 | struct cgroup *cur_cg; | ||
1802 | int retval = 0; | 1801 | int retval = 0; |
1803 | 1802 | ||
1804 | cgroup_lock(); | 1803 | cgroup_lock(); |
1805 | for_each_active_root(root) { | 1804 | for_each_active_root(root) { |
1806 | cur_cg = task_cgroup_from_root(from, root); | 1805 | struct cgroup *from_cg = task_cgroup_from_root(from, root); |
1807 | retval = cgroup_attach_task(cur_cg, tsk); | 1806 | |
1807 | retval = cgroup_attach_task(from_cg, tsk); | ||
1808 | if (retval) | 1808 | if (retval) |
1809 | break; | 1809 | break; |
1810 | } | 1810 | } |