netfilter: conntrack: move helper destruction to nf_ct_helper_destroy()
[sfrench/cifs-2.6.git] / net / netfilter / nf_conntrack_core.c
index bcacbb5373c3cd908c0ad827d7a69174e88d5117..14235b144cb5cd861025c669c82017801bed415b 100644 (file)
@@ -224,17 +224,8 @@ static void death_by_timeout(unsigned long ul_conntrack)
 {
        struct nf_conn *ct = (void *)ul_conntrack;
        struct net *net = nf_ct_net(ct);
-       struct nf_conn_help *help = nfct_help(ct);
-       struct nf_conntrack_helper *helper;
-
-       if (help) {
-               rcu_read_lock();
-               helper = rcu_dereference(help->helper);
-               if (helper && helper->destroy)
-                       helper->destroy(ct);
-               rcu_read_unlock();
-       }
 
+       nf_ct_helper_destroy(ct);
        spin_lock_bh(&nf_conntrack_lock);
        /* Inside lock so preempt is disabled on module removal path.
         * Otherwise we can get spurious warnings. */