commit | baae3e62f31618d90e08fb886b4481e5d7b7f27c | [log] [tgz] |
---|---|---|
author | Patrick McHardy <kaber@trash.net> | Thu Jan 09 18:42:34 2014 +0000 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Thu Jan 09 20:17:14 2014 +0100 |
tree | 706f332147b442369fd5e8219fad73dae2c80a4e | |
parent | 758206760cbadf66dc31d6587f5958691b34e9e5 [diff] |
netfilter: nf_tables: fix chain type module reference handling The chain type module reference handling makes no sense at all: we take a reference immediately when the module is registered, preventing the module from ever being unloaded. Fix by taking a reference when we're actually creating a chain of the chain type and release the reference when destroying the chain. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>