tcp: correctly crypto_alloc_hash return check
[deliverable/linux.git] / net / netfilter / nfnetlink_cttimeout.c
index 5d010f27ac018d079058000c11acc66d7086b57a..2671b9deb103735ff203999286a8cfbdde434f12 100644 (file)
@@ -307,7 +307,7 @@ static void ctnl_untimeout(struct net *net, struct ctnl_timeout *timeout)
 
        local_bh_disable();
        for (i = 0; i < net->ct.htable_size; i++) {
-               spin_lock(&nf_conntrack_locks[i % CONNTRACK_LOCKS]);
+               nf_conntrack_lock(&nf_conntrack_locks[i % CONNTRACK_LOCKS]);
                if (i < net->ct.htable_size) {
                        hlist_nulls_for_each_entry(h, nn, &net->ct.hash[i], hnnode)
                                untimeout(h, timeout);
This page took 0.026895 seconds and 5 git commands to generate.