gen2_basic - handle case where max_sge > 100

When choosing an illegal number of maximum SGEs, handle the case where
the device allows more than 100 SGEs.

Signed-off by: Robert Walsh <robert.walsh@qlogic.com>

diff -rNu a/gen2_basic/test_poll_post.c b/gen2_basic/test_poll_post.c
--- a/gen2_basic/test_poll_post.c	2006-09-13 19:11:50.911178000 -0700
+++ b/gen2_basic/test_poll_post.c	2006-08-14 14:17:03.705821000 -0700
@@ -751,7 +751,7 @@
 					CHECK_VALUE("my_modify_qp", rc, 0, goto cleanup);
 				}
 
-				num_sge = VL_range(rand_gen, srq_init_attr.attr.max_sge + 1, 100);
+				num_sge = VL_range(rand_gen, srq_init_attr.attr.max_sge + 1, srq_init_attr.attr.max_sge + 100);
 				wr = my_create_rr_desc(rand_gen, num_sge, num_wr);
 				CHECK_PTR("my_create_rr_desc", wr, goto cleanup);
 	
