]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv4/tcp_ipv4.c
[IPV6]: Reuse inet_csk_get_port in tcp_v6_get_port
[mirror_ubuntu-bionic-kernel.git] / net / ipv4 / tcp_ipv4.c
index 4d5021e1929b991861c0fc788be99c8b568fcb79..2aa19c89a94ab536a66b370347cec76335365180 100644 (file)
@@ -97,7 +97,8 @@ struct inet_hashinfo __cacheline_aligned tcp_hashinfo = {
 
 static int tcp_v4_get_port(struct sock *sk, unsigned short snum)
 {
-       return inet_csk_get_port(&tcp_hashinfo, sk, snum);
+       return inet_csk_get_port(&tcp_hashinfo, sk, snum,
+                                inet_csk_bind_conflict);
 }
 
 static void tcp_v4_hash(struct sock *sk)