All of lore.kernel.org
 help / color / mirror / Atom feed
* double call to ip_conntrack_put() ?
@ 2005-04-18  9:29 Wang Jian
  2005-04-18  9:56 ` KOVACS Krisztian
  2005-04-18  9:57 ` Tobias DiPasquale
  0 siblings, 2 replies; 7+ messages in thread
From: Wang Jian @ 2005-04-18  9:29 UTC (permalink / raw)
  To: netfilter-devel

Hi,

death_by_timeout() calls ip_conntrack_put() before return. And
death_by_timeout() is called combined with ip_conntrack_put() in some
places, such as

in early_drop()

        if (del_timer(&ct->timeout)) {
                death_by_timeout((unsigned long)ct);
                dropped = 1;
                CONNTRACK_STAT_INC(early_drop);
        }
        ip_conntrack_put(ct);

and in ip_ct_iterate_cleanup()

        while ((h = get_next_corpse(iter, data, &bucket)) != NULL) {
                struct ip_conntrack *ct = tuplehash_to_ctrack(h);
                /* Time to push up daises... */
                if (del_timer(&ct->timeout))
                        death_by_timeout((unsigned long)ct);
                /* ... else the timer will get him soon. */

                ip_conntrack_put(ct);
        }

Is this intended or misuse?


-- 
  lark

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-04-18 11:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-18  9:29 double call to ip_conntrack_put() ? Wang Jian
2005-04-18  9:56 ` KOVACS Krisztian
2005-04-18  9:57 ` Tobias DiPasquale
2005-04-18 10:25   ` Wang Jian
2005-04-18 11:02   ` Amin Azez
2005-04-18 11:22     ` Tobias DiPasquale
2005-04-18 11:22     ` Wang Jian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.