Fix the type of the variable that hold the number of bytes sent 
as inline message so far.
Without the patch, If the user will try to use very big messages (total > 2^31) 
there will be a seg fault.

Signed-off-by: Dotan Barak <[EMAIL PROTECTED]>

---

diff --git a/src/qp.c b/src/qp.c
index 8b4adaa..abac597 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -177,7 +177,7 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr 
*wr,
        struct mlx4_wqe_ctrl_seg *ctrl;
        int ind;
        int nreq;
-       int inl = 0;
+       unsigned int inl = 0;
        int ret = 0;
        int size;
        int i;
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to