[openib-general] [PATCH RFC 18/21] ofed_1_2 Backport infiniband/hw/cxgb3/core/cxio_resource.c to sles9sp3

Steve Wise swise at opengridcomputing.com
Mon Jan 15 13:19:55 PST 2007


Backport infiniband/hw/cxgb3/core/cxio_resource.c to sles9sp3

Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---

 .../cxio_resource_to_2_6_5-7_244.patch             |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/kernel_patches/backport/2.6.5_sles9_sp3/cxio_resource_to_2_6_5-7_244.patch b/kernel_patches/backport/2.6.5_sles9_sp3/cxio_resource_to_2_6_5-7_244.patch
new file mode 100644
index 0000000..20df3ec
--- /dev/null
+++ b/kernel_patches/backport/2.6.5_sles9_sp3/cxio_resource_to_2_6_5-7_244.patch
@@ -0,0 +1,20 @@
+diff --git a/drivers/infiniband/hw/cxgb3/core/cxio_resource.c b/drivers/infiniband/hw/cxgb3/core/cxio_resource.c
+index d1d8722..4fb9890 100644
+--- a/drivers/infiniband/hw/cxgb3/core/cxio_resource.c
++++ b/drivers/infiniband/hw/cxgb3/core/cxio_resource.c
+@@ -64,13 +64,13 @@ static int __cxio_init_resource_fifo(str
+ 		__kfifo_put(*fifo, (unsigned char *) &entry, sizeof(u32));
+ 	if (random) {
+ 		j = 0;
+-		random_bytes = random32();
++		get_random_bytes(&random_bytes, 4);
+ 		for (i = 0; i < RANDOM_SIZE; i++)
+ 			rarray[i] = i + skip_low;
+ 		for (i = skip_low + RANDOM_SIZE; i < nr - skip_high; i++) {
+ 			if (j >= RANDOM_SIZE) {
+ 				j = 0;
+-				random_bytes = random32();
++				get_random_bytes(&random_bytes, 4);
+ 			}
+ 			idx = (random_bytes >> (j * 2)) & 0xF;
+ 			__kfifo_put(*fifo,




More information about the general mailing list