]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26baa34d396699311fa2abf1b788add9ebc6fb82
tree94293e4d5c9a71751dacf5b2a34735428010ff2e
parent241f139b77877483f50bc3ab9a7a4023ced877a5
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