cls_cgroup: fix an oops when removing a cgroup
Subsystems (3)
PATCH 1/3 cls_cgroup: fix an oops when removing a cgroup
When removing a cgroup, an oops was triggered immediately. The cause is wrong kfree() in cgrp_destroy().
Signed-off-by Li Zefan <[email protected]>
--- net/sched/cls_cgroup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/sched/cls_cgroup.c +1 -1
@@ -46,7 +46,7 @@ static struct cgroup_subsys_state *cgrp_create(struct cgroup_subsys *ss,static void cgrp_destroy (struct cgroup_subsys *ss,struct cgroup *cgrp) { -kfree (ss); +kfree (net_cls_state (cgrp)); }static u64 read_classid (struct cgroup *cgrp,struct cftype *cft)
Signature · 1 line
1.5.4.rc3
* Li Zefan <[email protected]> 2008-12-29 11:57
Quoted 2 lines
When removing a cgroup, an oops was triggered immediately. The cause is wrong
kfree()incgrp_destroy().
Good catch.
Acked-by Thomas Graf <[email protected]>