summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_api.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso2017-05-22 18:47:54 +0200
committerPablo Neira Ayuso2017-05-29 12:46:18 +0200
commit347b408d59e7eadcd09f97eba96fa4c270eb3b23 (patch)
tree353c72eb5a23e384880154db4019d1f40068ecfd /net/netfilter/nf_tables_api.c
parentnetfilter: nf_tables: select set backend flavour depending on description (diff)
downloadkernel-qcow2-linux-347b408d59e7eadcd09f97eba96fa4c270eb3b23.tar.gz
kernel-qcow2-linux-347b408d59e7eadcd09f97eba96fa4c270eb3b23.tar.xz
kernel-qcow2-linux-347b408d59e7eadcd09f97eba96fa4c270eb3b23.zip
netfilter: nf_tables: pass set description to ->privsize
The new non-resizable hashtable variant needs this to calculate the size of the bucket array. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
-rw-r--r--net/netfilter/nf_tables_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index c0b2b19607e1..2969016d8cad 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -3052,7 +3052,7 @@ static int nf_tables_newset(struct net *net, struct sock *nlsk,
size = 0;
if (ops->privsize != NULL)
- size = ops->privsize(nla);
+ size = ops->privsize(nla, &desc);
err = -ENOMEM;
set = kzalloc(sizeof(*set) + size + udlen, GFP_KERNEL);