netfilter: conntrack: convert to refcount_t api
[platform/kernel/linux-rpi.git] / net / netfilter / xt_CT.c
index 0a913ce..267757b 100644 (file)
@@ -24,7 +24,7 @@ static inline int xt_ct_target(struct sk_buff *skb, struct nf_conn *ct)
                return XT_CONTINUE;
 
        if (ct) {
-               atomic_inc(&ct->ct_general.use);
+               refcount_inc(&ct->ct_general.use);
                nf_ct_set(skb, ct, IP_CT_NEW);
        } else {
                nf_ct_set(skb, ct, IP_CT_UNTRACKED);
@@ -201,7 +201,6 @@ static int xt_ct_tg_check(const struct xt_tgchk_param *par,
                        goto err4;
        }
        __set_bit(IPS_CONFIRMED_BIT, &ct->status);
-       nf_conntrack_get(&ct->ct_general);
 out:
        info->ct = ct;
        return 0;