aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2009-09-23 03:17:10 +0000
committerDavid S. Miller <davem@davemloft.net>2009-09-24 15:38:54 -0700
commit582b0b611345fc8d9ab8a0605d2f14c468902719 (patch)
tree3e051d3777171b7f708f5fd89c910d7a62eedfad /net/phonet/af_phonet.c
parentpktgen: better scheduler friendliness (diff)
downloadlinux-dev-582b0b611345fc8d9ab8a0605d2f14c468902719.tar.xz
linux-dev-582b0b611345fc8d9ab8a0605d2f14c468902719.zip
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 <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/phonet/af_phonet.c')
0 files changed, 0 insertions, 0 deletions