]> 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)
committerAK <andi@firstfloor.org>
Sun, 6 Feb 2011 19:03:38 +0000 (11:03 -0800)
commit9b8a00c1f467735fbead2228f331a1182c9bb643
tree81f34879001365c606392cf37e18626aace1dd0a
parent419765ea4d221ddb9f41558eb5948c7c838f34ba
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
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