[lkml]   [2011]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[067/152] cls_cgroup: Fix crash on module unload
2.6.36-stable review patch.  If anyone has any objections, please let us know.


From: Herbert Xu <>

[ Upstream commit c00b2c9e79466d61979cd21af526cc6d5d0ee04f ]

Somewhere along the lines net_cls_subsys_id became a macro when
cls_cgroup is built as a module. Not only did it make cls_cgroup
completely useless, it also causes it to crash on module unload.

This patch fixes this by removing that macro.

Thanks to Eric Dumazet for diagnosing this problem.

Reported-by: Randy Dunlap <>
Signed-off-by: Herbert Xu <>
Reviewed-by: Li Zefan <>
Signed-off-by: David S. Miller <>
Signed-off-by: Greg Kroah-Hartman <>
net/sched/cls_cgroup.c | 2 --
1 file changed, 2 deletions(-)

--- a/net/sched/cls_cgroup.c
+++ b/net/sched/cls_cgroup.c
@@ -34,8 +34,6 @@ struct cgroup_subsys net_cls_subsys = {
.populate = cgrp_populate,
.subsys_id = net_cls_subsys_id,
-#define net_cls_subsys_id net_cls_subsys.subsys_id
.module = THIS_MODULE,

 \ /
  Last update: 2011-01-06 01:59    [W:0.661 / U:2.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site