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)
commitb23909695c33f53df5f1d16696b1aa5b874c1904
tree94293e4d5c9a71751dacf5b2a34735428010ff2e
parented0b6d7581b54455062f09ccac123814e70cd02f
netfilter: nf_conntrack: fix the hash random initializing race

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