aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/cgroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index aa95591c1430..793f37176077 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1566,10 +1566,10 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,
1566 mutex_lock(&cgroup_mutex); 1566 mutex_lock(&cgroup_mutex);
1567 mutex_lock(&cgroup_root_mutex); 1567 mutex_lock(&cgroup_root_mutex);
1568 1568
1569 root_cgrp->id = idr_alloc(&root->cgroup_idr, root_cgrp, 1569 ret = idr_alloc(&root->cgroup_idr, root_cgrp, 0, 1, GFP_KERNEL);
1570 0, 1, GFP_KERNEL); 1570 if (ret < 0)
1571 if (root_cgrp->id < 0)
1572 goto unlock_drop; 1571 goto unlock_drop;
1572 root_cgrp->id = ret;
1573 1573
1574 /* Check for name clashes with existing mounts */ 1574 /* Check for name clashes with existing mounts */
1575 ret = -EBUSY; 1575 ret = -EBUSY;