aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r--net/sctp/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 911b71b26b0e..72046b9729a8 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -5890,7 +5890,7 @@ static long sctp_get_port_local(struct sock *sk, union sctp_addr *addr)
5890 int low, high, remaining, index; 5890 int low, high, remaining, index;
5891 unsigned int rover; 5891 unsigned int rover;
5892 5892
5893 inet_get_local_port_range(&low, &high); 5893 inet_get_local_port_range(sock_net(sk), &low, &high);
5894 remaining = (high - low) + 1; 5894 remaining = (high - low) + 1;
5895 rover = net_random() % remaining + low; 5895 rover = net_random() % remaining + low;
5896 5896