]> err.no Git - linux-2.6/blobdiff - net/netfilter/nf_conntrack_expect.c
[NETFILTER]: nfnetlink_log: remove fallback to group 0
[linux-2.6] / net / netfilter / nf_conntrack_expect.c
index 5cdcd7f4e81346f218ee5eb3f809732a54b3452e..c31af29a4439f9266592abe0c162cf97fef291b7 100644 (file)
@@ -130,7 +130,7 @@ void nf_ct_remove_expectations(struct nf_conn *ct)
                if (i->master == ct && del_timer(&i->timeout)) {
                        nf_ct_unlink_expect(i);
                        nf_conntrack_expect_put(i);
-               }
+               }
        }
 }
 EXPORT_SYMBOL_GPL(nf_ct_remove_expectations);
@@ -290,9 +290,7 @@ static void nf_conntrack_expect_insert(struct nf_conntrack_expect *exp)
        master_help->expecting++;
        list_add(&exp->list, &nf_conntrack_expect_list);
 
-       init_timer(&exp->timeout);
-       exp->timeout.data = (unsigned long)exp;
-       exp->timeout.function = expectation_timed_out;
+       setup_timer(&exp->timeout, expectation_timed_out, (unsigned long)exp);
        exp->timeout.expires = jiffies + master_help->helper->timeout * HZ;
        add_timer(&exp->timeout);