diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/cgroup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index fb2fb11fbb25..888fba457bb3 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
| @@ -4618,10 +4618,8 @@ void cgroup_unload_subsys(struct cgroup_subsys *ss) | |||
| 4618 | offline_css(ss, dummytop); | 4618 | offline_css(ss, dummytop); |
| 4619 | ss->active = 0; | 4619 | ss->active = 0; |
| 4620 | 4620 | ||
| 4621 | if (ss->use_id) { | 4621 | if (ss->use_id) |
| 4622 | idr_remove_all(&ss->idr); | ||
| 4623 | idr_destroy(&ss->idr); | 4622 | idr_destroy(&ss->idr); |
| 4624 | } | ||
| 4625 | 4623 | ||
| 4626 | /* deassign the subsys_id */ | 4624 | /* deassign the subsys_id */ |
| 4627 | subsys[ss->subsys_id] = NULL; | 4625 | subsys[ss->subsys_id] = NULL; |
