From patchwork Fri Aug 31 04:27:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 11122 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 01ED923EFF for ; Fri, 31 Aug 2012 04:30:15 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8558FA19378 for ; Fri, 31 Aug 2012 04:29:37 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so4171628iaf.11 for ; Thu, 30 Aug 2012 21:30:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=mecyOg5fOhva3/bDHqtH4Hh22zkPtOWwe1t/d3x881E=; b=fTkDOvrSOAUVEa8lXy9Xa1Totf4j1+cOaqHbAT+rLOsZo7qLYN4gNOSaf4wOXzlCAo Fd+jivSYSZw23cnEi/4UC1MriQJ4wXr643bMRTO2tvWxrDWn4FIVshmPiBkKcT/ZmDaX keA0M6CZohoIDIqIcDOGA5R2E5Cs8rgB3qMV0SQxSsOP4SUDZnxvE4Lm0X9E5sro/y12 s1jkFsDZChPfINuVkhKvUUBUjgkmCyWJO8SMijc6NyR7p7BOQcNBIlDBPKdqvCMXD4U6 OLQr37vX/xfxeKzHQgPXPnECmC76AiolSfzHaICFW+nQHsNcoHvKfjAvmhI5xeqdJSBw eY+w== Received: by 10.50.207.106 with SMTP id lv10mr891904igc.0.1346387414428; Thu, 30 Aug 2012 21:30:14 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp44674igc; Thu, 30 Aug 2012 21:30:14 -0700 (PDT) Received: by 10.68.134.228 with SMTP id pn4mr15048614pbb.147.1346387413913; Thu, 30 Aug 2012 21:30:13 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id ip5si6305212pbc.348.2012.08.30.21.30.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Aug 2012 21:30:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md12so4575653pbc.37 for ; Thu, 30 Aug 2012 21:30:13 -0700 (PDT) Received: by 10.68.213.234 with SMTP id nv10mr15178324pbc.56.1346387413702; Thu, 30 Aug 2012 21:30:13 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id vh7sm2710447pbc.22.2012.08.30.21.30.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Aug 2012 21:30:13 -0700 (PDT) From: Tushar Behera To: linaro-dev@lists.linaro.org Cc: john.stultz@linaro.org, jpa@google.com, patches@linaro.org Subject: [PATCH 2/2] netfilter: xt_quota2: Update parameter list in netlink_kernel_create Date: Fri, 31 Aug 2012 09:57:38 +0530 Message-Id: <1346387258-18321-3-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1346387258-18321-1-git-send-email-tushar.behera@linaro.org> References: <1346387258-18321-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQm2ad10Uz2sMOtnTIQURxNOBSUZ1ka02unAOGZYDoKI0idRMXAt0beozHXQZ3lJq7dR7G5e Commit a31f2d17b331 ("netlink: add netlink_kernel_cfg parameter to netlink_kernel_create") modifies parameter list of netlink_kernel_create. Signed-off-by: Tushar Behera --- net/netfilter/xt_quota2.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/net/netfilter/xt_quota2.c b/net/netfilter/xt_quota2.c index 865f909..3a9c1f9 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