diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2009-09-22 23:17:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-24 18:38:54 -0400 |
commit | 582b0b611345fc8d9ab8a0605d2f14c468902719 (patch) | |
tree | 3e051d3777171b7f708f5fd89c910d7a62eedfad /include/linux/phonet.h | |
parent | ef87979c273a2348430648ad1d5c2a5e5df50b6e (diff) |
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 'include/linux/phonet.h')
0 files changed, 0 insertions, 0 deletions