From: Rémi Denis-Courmont Date: Wed, 23 Sep 2009 03:17:10 +0000 (+0000) Subject: Phonet: fix race for port number in concurrent bind() X-Git-Tag: v2.6.32-rc1~27^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=582b0b611345fc8d9ab8a0605d2f14c468902719;p=pandora-kernel.git Phonet: fix race for port number in concurrent bind() Allocating a port number to a socket and hashing that socket shall be an atomic operation with regards to other port allocation. Otherwise, we could allocate a port that is already being allocated to another socket. Signed-off-by: Rémi Denis-Courmont Signed-off-by: David S. Miller --- Reading git-diff-tree failed