]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Nov 2010 01:50:50 +0000 (18:50 -0700)
commitc00b2c9e79466d61979cd21af526cc6d5d0ee04f
tree300e44d04f76b860580cb1ca5f0fc7b37112375a
parenta6331d6f9a4298173b413cf99a40cc86a9d92c37
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 <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>
net/sched/cls_cgroup.c