netfilter: nf_conntrack: fix the hash random initializing race
authorChangli Gao <xiaosuo@gmail.com>
Thu, 16 Sep 2010 17:55:03 +0000 (19:55 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 16 Sep 2010 17:55:03 +0000 (19:55 +0200)
nf_conntrack_alloc() isn't called with nf_conntrack_lock locked, so hash
random initializing code maybe executed more than once on different
CPUs.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nf_conntrack_core.c

Simple merge