summaryrefslogtreecommitdiff
path: root/net/netfilter/xt_quota2.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netfilter/xt_quota2.c')
-rw-r--r--net/netfilter/xt_quota2.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/netfilter/xt_quota2.c b/net/netfilter/xt_quota2.c
index 865f9094d0eb..3a9c1f9475ce 100644
--- a/net/netfilter/xt_quota2.c
+++ b/net/netfilter/xt_quota2.c
@@ -350,12 +350,14 @@ static struct xt_match quota_mt2_reg[] __read_mostly = {
static int __init quota_mt2_init(void)
{
int ret;
+ struct netlink_kernel_cfg cfg = {
+ .groups = 1,
+ };
pr_debug("xt_quota2: init()");
#ifdef CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG
- nflognl = netlink_kernel_create(&init_net,
- NETLINK_NFLOG, 1, NULL,
- NULL, THIS_MODULE);
+ nflognl = netlink_kernel_create(&init_net, NETLINK_NFLOG,
+ THIS_MODULE, &cfg);
if (!nflognl)
return -ENOMEM;
#endif