aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rds/bind.c')
-rw-r--r--net/rds/bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/bind.c b/net/rds/bind.c
index b5ad65a0067e..a2e6562da751 100644
--- a/net/rds/bind.c
+++ b/net/rds/bind.c
@@ -117,7 +117,7 @@ static int rds_add_bound(struct rds_sock *rs, __be32 addr, __be16 *port)
117 rover = be16_to_cpu(*port); 117 rover = be16_to_cpu(*port);
118 last = rover; 118 last = rover;
119 } else { 119 } else {
120 rover = max_t(u16, net_random(), 2); 120 rover = max_t(u16, prandom_u32(), 2);
121 last = rover - 1; 121 last = rover - 1;
122 } 122 }
123 123