]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net...
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 20 Aug 2015 23:10:19 +0000 (01:10 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 21 Aug 2015 04:09:05 +0000 (06:09 +0200)
Resolve conflicts with conntrack template fixes.

Conflicts:
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_synproxy_core.c
net/netfilter/xt_CT.c

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1  2 
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_synproxy_core.c
net/netfilter/xt_CT.c

Simple merge
index 58b2e84dab273f5b07cd15755528b56bd7a9aad0,14f8b43ec5a7c736bbdafa6a8dd8b3f1fed2afa8..8fbbdb09826eefd29105b3e80f87c1e54dbb64a9
@@@ -354,11 -352,9 +354,9 @@@ static int __net_init synproxy_net_init
        struct nf_conn *ct;
        int err = -ENOMEM;
  
 -      ct = nf_ct_tmpl_alloc(net, 0, GFP_KERNEL);
 +      ct = nf_ct_tmpl_alloc(net, &nf_ct_zone_dflt, GFP_KERNEL);
-       if (IS_ERR(ct)) {
-               err = PTR_ERR(ct);
+       if (!ct)
                goto err1;
-       }
  
        if (!nfct_seqadj_ext_add(ct))
                goto err2;
index 346509825a80e669428426d54d0d65924d72172e,43ddeee404e91f97908fb9228c1e873931b75bcc..8e524898ccea234a2b5cae3bdfaf2cd72d023238
@@@ -217,16 -201,11 +217,17 @@@ static int xt_ct_tg_check(const struct 
        if (ret < 0)
                goto err1;
  
 -      ct = nf_ct_tmpl_alloc(par->net, info->zone, GFP_KERNEL);
 +      memset(&zone, 0, sizeof(zone));
 +      zone.id = info->zone;
 +      zone.dir = xt_ct_flags_to_dir(info);
 +      if (info->flags & XT_CT_ZONE_MARK)
 +              zone.flags |= NF_CT_FLAG_MARK;
 +
 +      ct = nf_ct_tmpl_alloc(par->net, &zone, GFP_KERNEL);
-       ret = PTR_ERR(ct);
-       if (IS_ERR(ct))
+       if (!ct) {
+               ret = -ENOMEM;
                goto err2;
+       }
  
        ret = 0;
        if ((info->ct_events || info->exp_events) &&