[ewg] patch for OFED 1.2

Michael S. Tsirkin mst at dev.mellanox.co.il
Sat Jun 9 23:37:13 PDT 2007


Sean, the following commit

	commit bf2944bd56c7a48cc3962a860dbc4ceee6b1ace8
	Author: Sean Hefty <sean.hefty at intel.com>
	Date:   Tue Jun 5 09:57:31 2007 -0700

	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 at intel.com>
	Signed-off-by: Roland Dreier <rolandd at cisco.com>

looks like something we want included in OFED 1.2 is well.
What do you think?

-- 
MST



More information about the ewg mailing list