aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-09 13:42:35 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2014-01-09 14:17:14 -0500
commit88ce65a71c39901494eb2f1393856bff8ba0158d (patch)
tree74ec344b9b23c85c96c47d26afe1a8bae3aa539e /net/bridge
parentbaae3e62f31618d90e08fb886b4481e5d7b7f27c (diff)
netfilter: nf_tables: add missing module references to chain types
In some cases we neither take a reference to the AF info nor to the chain type, allowing the module to be unloaded while in use. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/netfilter/nf_tables_bridge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/netfilter/nf_tables_bridge.c b/net/bridge/netfilter/nf_tables_bridge.c
index 003c1e9a8b0c..f97222eb8235 100644
--- a/net/bridge/netfilter/nf_tables_bridge.c
+++ b/net/bridge/netfilter/nf_tables_bridge.c
@@ -72,6 +72,7 @@ static struct nf_chain_type filter_bridge = {
72 .family = NFPROTO_BRIDGE, 72 .family = NFPROTO_BRIDGE,
73 .name = "filter", 73 .name = "filter",
74 .type = NFT_CHAIN_T_DEFAULT, 74 .type = NFT_CHAIN_T_DEFAULT,
75 .me = THIS_MODULE,
75 .hook_mask = (1 << NF_BR_LOCAL_IN) | 76 .hook_mask = (1 << NF_BR_LOCAL_IN) |
76 (1 << NF_BR_FORWARD) | 77 (1 << NF_BR_FORWARD) |
77 (1 << NF_BR_LOCAL_OUT), 78 (1 << NF_BR_LOCAL_OUT),