[INET]: Consolidate the xxx_put
[safe/jmp/linux-2.6] / net / ipv6 / netfilter / nf_conntrack_reasm.c
index 862d089..bf6f2f0 100644 (file)
@@ -149,8 +149,7 @@ static inline struct nf_ct_frag6_queue *frag_alloc_queue(void)
 
 static __inline__ void fq_put(struct nf_ct_frag6_queue *fq)
 {
-       if (atomic_dec_and_test(&fq->q.refcnt))
-               inet_frag_destroy(&fq->q, &nf_frags, NULL);
+       inet_frag_put(&fq->q, &nf_frags);
 }
 
 /* Kill fq entry. It is not destroyed immediately,