diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-12-28 17:57:19 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-29 19:40:44 -0800 |
commit | 2f068bf8711c35b98bf9a0172555b8390a762fc0 (patch) | |
tree | 270fc6c0a3df7ccbf9a77b4060dd3bc115c1b0b5 /net/sched/cls_cgroup.c | |
parent | 684f4a4c4a69f7226d8c7559c0cdfc7bd388335a (diff) | |
download | op-kernel-dev-2f068bf8711c35b98bf9a0172555b8390a762fc0.zip op-kernel-dev-2f068bf8711c35b98bf9a0172555b8390a762fc0.tar.gz |
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 <lizf@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_cgroup.c')
-rw-r--r-- | net/sched/cls_cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 0d68b19..31d95b1 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) |