cls_cgroup: Fix crash on module unload
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Nov 2010 13:31:05 +0000 (13:31 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:27 +0000 (13:58 -0800)
commit3e73328da09594bc4d40736c8b05c845558f0074
treea276f73234e29d494d51b0ac474e2f4c957975eb
parente4457f8db8e7c501d2c9d462c9226ae3092ca775
cls_cgroup: Fix crash on module unload

[ 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 <randy.dunlap@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/cls_cgroup.c