]> git.baikalelectronics.ru Git - kernel.git/commit
soreuseport: fix merge conflict in tcp bind
authorCraig Gallek <kraig@google.com>
Mon, 22 Feb 2016 15:45:29 +0000 (10:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Feb 2016 18:38:18 +0000 (13:38 -0500)
commitdd379a6ae3b1774cf53b0d9e9412cbe4ecee9c29
treefc7334074b73b90b8a1be537730d87ccd8f3ed01
parent41273812f1e1a27a02042012bafbd92f573368e2
soreuseport: fix merge conflict in tcp bind

One of the validation checks for the new array-based TCP SO_REUSEPORT
validation was unintentionally dropped in a20abb750f3f.  This adds it back.

Lack of this check allows the user to allocate multiple sock_reuseport
structures (leaking all but the first).

Fixes: a20abb750f3f ("tcp/dccp: better use of ephemeral ports in bind()")
Signed-off-by: Craig Gallek <kraig@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c