diff --git a/kernel/cgroup.c b/kernel/cgroup.c index fe00b3b983a86387332234703217abb1d28ca202..8185a0f09594fd904ca2ab032dca27013708ff1c 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -702,7 +702,7 @@ static int rebind_subsystems(struct cgroupfs_root *root, * any child cgroups exist. This is theoretically supportable * but involves complex error handling, so it's being left until * later */ - if (!list_empty(&cgrp->children)) + if (root->number_of_cgroups > 1) return -EBUSY; /* Process each subsystem */