From: Changli Gao Date: Wed, 5 Jan 2011 04:23:23 +0000 (+0000) Subject: netfilter: fix the race when initializing nf_ct_expect_hash_rnd X-Git-Tag: v2.6.38-rc1~476^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f682cefa5ad204d3bfaa54a58046c66d2d035ac1;p=pandora-kernel.git netfilter: fix the race when initializing nf_ct_expect_hash_rnd Since nf_ct_expect_dst_hash() may be called without nf_conntrack_lock locked, nf_ct_expect_hash_rnd should be initialized in the atomic way. In this patch, we use nf_conntrack_hash_rnd instead of nf_ct_expect_hash_rnd. Signed-off-by: Changli Gao Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed