[PATCH] IB/cm: set private data length for reject messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew,
Here's another infiniband patch that needs to go upstream.

---

From: "Ira Weiny" <[email protected]>

Set private data length for reject messages to the correct size.
Fix from openib svn r8483.

Signed-off-by: Sean Hefty <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>

Index: openib/drivers/infiniband/core/cma.c
===================================================================
--- openib/drivers/infiniband/core/cma.c	(revision 8482)
+++ openib/drivers/infiniband/core/cma.c	(revision 8483)
@@ -906,6 +906,7 @@ static int cma_ib_handler(struct ib_cm_i
 		cma_modify_qp_err(&id_priv->id);
 		status = ib_event->param.rej_rcvd.reason;
 		event = RDMA_CM_EVENT_REJECTED;
+		private_data_len = IB_CM_REJ_PRIVATE_DATA_SIZE;
 		break;
 	default:
 		printk(KERN_ERR "RDMA CMA: unexpected IB CM event: %d",

-- 
MST
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux