netfilter: conntrack: convert to refcount_t api
[sfrench/cifs-2.6.git] / net / netfilter / nf_flow_table_core.c
index ed37bb9b4e5886cd7681606ad9d423ec5575f9be..b90eca7a2f22bf8f4f6e4eced7650017c70c041d 100644 (file)
@@ -48,7 +48,7 @@ struct flow_offload *flow_offload_alloc(struct nf_conn *ct)
        struct flow_offload *flow;
 
        if (unlikely(nf_ct_is_dying(ct) ||
-           !atomic_inc_not_zero(&ct->ct_general.use)))
+           !refcount_inc_not_zero(&ct->ct_general.use)))
                return NULL;
 
        flow = kzalloc(sizeof(*flow), GFP_ATOMIC);