projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
684f4a4
)
cls_cgroup: fix an oops when removing a cgroup
author
Li Zefan
<lizf@cn.fujitsu.com>
Sun, 28 Dec 2008 17:57:19 +0000
(17:57 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 30 Dec 2008 03:40:44 +0000
(19:40 -0800)
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>
net/sched/cls_cgroup.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/cls_cgroup.c
b/net/sched/cls_cgroup.c
index 0d68b1975983a323775b5c4deef4f2ae1ae8ae5d..31d95b1946c6ab27a681b0fe90b5869d16e1e65a 100644
(file)
--- 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)