Sean Hefty bf2944bd56 RDMA/cma: Fix initialization of next_port
next_port should be between sysctl_local_port_range[0] and [1].
However, it is initially set to a random value with get_random_bytes().  
If the value is negative when treated as a signed integer, next_port
can end up outside the expected range because of the result of the % 
operator being negative.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-06-07 23:24:38 -07:00
..
2005-10-29 10:35:07 -07:00
2007-05-21 09:18:19 -07:00
2005-10-20 12:29:36 -07:00
2007-05-29 16:07:09 -07:00
2006-09-22 15:22:46 -07:00
2006-11-22 14:57:56 +00:00
2007-05-06 21:18:11 -07:00
2007-04-24 16:31:11 -07:00
2007-04-24 16:31:11 -07:00
2007-05-06 21:18:11 -07:00