From: Herbert Xu Date: Wed, 3 Nov 2010 13:31:05 +0000 (+0000) Subject: cls_cgroup: Fix crash on module unload X-Git-Tag: upstream/snapshot3+hdmi~12461^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c00b2c9e79466d61979cd21af526cc6d5d0ee04f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git cls_cgroup: Fix crash on module unload 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 --- diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 37dff78..d49c40f 100644 --- 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, #ifdef CONFIG_NET_CLS_CGROUP .subsys_id = net_cls_subsys_id, -#else -#define net_cls_subsys_id net_cls_subsys.subsys_id #endif .module = THIS_MODULE, };