[ofa-general] [PATCH] IB/core user memory registrations

Eli Cohen eli at mellanox.co.il
Wed May 9 01:12:43 PDT 2007


fix missing initialization of write_mtt_size 

Signed-off-by: Eli Cohen <eli at mellanox.co.il>

---

Index: connectx_kernel/drivers/infiniband/hw/mthca/mthca_provider.c
===================================================================
--- connectx_kernel.orig/drivers/infiniband/hw/mthca/mthca_provider.c	2007-05-08 15:48:57.000000000 +0300
+++ connectx_kernel/drivers/infiniband/hw/mthca/mthca_provider.c	2007-05-08 17:17:03.000000000 +0300
@@ -1020,7 +1020,7 @@ static struct ib_mr *mthca_reg_user_mr(s
 	int shift, n, len;
 	int i, j, k;
 	int err = 0;
-	int write_mtt_size;
+	int write_mtt_size = mthca_write_mtt_size(dev);
 
 	mr = kmalloc(sizeof *mr, GFP_KERNEL);
 	if (!mr)




More information about the general mailing list