From: Ira Weiny Date: Fri, 14 Jul 2006 07:23:54 +0000 (-0700) Subject: [PATCH] IB/cm: set private data length for reject messages X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=74f76fbac72c84ac78620698a584d403b655e62a;p=openwrt%2Fstaging%2Fblogic.git [PATCH] IB/cm: set private data length for reject messages Set private data length for reject messages to the correct size. Fix from openib svn r8483. Signed-off-by: Sean Hefty Signed-off-by: Michael S. Tsirkin Cc: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index c2cba734c5cb..d6f99d5720fc 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -812,6 +812,7 @@ static int cma_ib_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) 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",