Commit 74f76fba authored by Ira Weiny's avatar Ira Weiny Committed by Linus Torvalds

[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: default avatarSean Hefty <sean.hefty@intel.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@mellanox.co.il>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6583eb3d
...@@ -812,6 +812,7 @@ static int cma_ib_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) ...@@ -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); cma_modify_qp_err(&id_priv->id);
status = ib_event->param.rej_rcvd.reason; status = ib_event->param.rej_rcvd.reason;
event = RDMA_CM_EVENT_REJECTED; event = RDMA_CM_EVENT_REJECTED;
private_data_len = IB_CM_REJ_PRIVATE_DATA_SIZE;
break; break;
default: default:
printk(KERN_ERR "RDMA CMA: unexpected IB CM event: %d", printk(KERN_ERR "RDMA CMA: unexpected IB CM event: %d",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment