From: Sean Hefty Date: Tue, 5 Jun 2007 16:57:31 +0000 (-0700) Subject: RDMA/cma: Fix initialization of next_port X-Git-Tag: v2.6.22-rc5~48^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf2944bd56c7a48cc3962a860dbc4ceee6b1ace8;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed