diff options
author | 2007-06-05 09:57:31 -0700 | |
---|---|---|
committer | 2007-06-07 23:24:38 -0700 | |
commit | bf2944bd56c7a48cc3962a860dbc4ceee6b1ace8 (patch) | |
tree | b6255f3830965ddc615a0b872bd3c4bbfa1bf492 /mm/page_alloc.c | |
parent | IB/mlx4: Fix zeroing of rnr_retry value in ib_modify_qp() (diff) | |
download | linux-rng-bf2944bd56c7a48cc3962a860dbc4ceee6b1ace8.tar.xz linux-rng-bf2944bd56c7a48cc3962a860dbc4ceee6b1ace8.zip |
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>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions