mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
This commit is contained in:
parent
baae3e62f3
commit
88ce65a71c
5 changed files with 5 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ static struct nf_chain_type filter_ipv6 = {
|
|||
.family = NFPROTO_IPV6,
|
||||
.name = "filter",
|
||||
.type = NFT_CHAIN_T_DEFAULT,
|
||||
.me = THIS_MODULE,
|
||||
.hook_mask = (1 << NF_INET_LOCAL_IN) |
|
||||
(1 << NF_INET_LOCAL_OUT) |
|
||||
(1 << NF_INET_FORWARD) |
|
||||
|
|
|
|||
Loading…
Reference in a new issue