summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-08-31 09:57:38 +0530
committerJohn Stultz <john.stultz@linaro.org>2012-09-11 02:17:54 -0400
commite2778d52ad167403ed94e01a1736c4501f4e6c06 (patch)
treebae018c592edcea22fb1c8f2c1e1ea77478057e4
parentc72bc1cc3a68c9fa2b795f4038ac12961a64be8a (diff)
downloadlinux-topics-tracking-linaro-android-3.6-llct-20121008.0.tar.gz
Commit a31f2d17b331 ("netlink: add netlink_kernel_cfg parameter to netlink_kernel_create") modifies parameter list of netlink_kernel_create. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
-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 865f9094d0e..3a9c1f9475c 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