diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index c29831076e7a..2ae7cb47dbfa 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -2434,7 +2434,9 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry, | |||
2434 | 2434 | ||
2435 | err_remove: | 2435 | err_remove: |
2436 | 2436 | ||
2437 | cgroup_lock_hierarchy(root); | ||
2437 | list_del(&cgrp->sibling); | 2438 | list_del(&cgrp->sibling); |
2439 | cgroup_unlock_hierarchy(root); | ||
2438 | root->number_of_cgroups--; | 2440 | root->number_of_cgroups--; |
2439 | 2441 | ||
2440 | err_destroy: | 2442 | err_destroy: |