From 2f068bf8711c35b98bf9a0172555b8390a762fc0 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Sun, 28 Dec 2008 17:57:19 +0000 Subject: [PATCH] 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 --- net/sched/cls_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 0d68b197598..31d95b1946c 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) -- 2.41.1