From: Li Zefan Date: Sun, 28 Dec 2008 17:57:19 +0000 (+0000) Subject: cls_cgroup: fix an oops when removing a cgroup X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2f068bf8711c35b98bf9a0172555b8390a762fc0;p=linux-beck.git 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 Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 0d68b1975983..31d95b1946c6 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c @@ -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)