IB/ucm: Get rid of duplicate P_Key parameter
[deliverable/linux.git] / drivers / infiniband / core / cm.c
index 1c7463b7c5fd57c783580c6edfbc76f2af50d1d0..629ed26a01769a46ea3febc93321442629342ea2 100644 (file)
@@ -2615,7 +2615,7 @@ static void cm_format_sidr_req(struct cm_sidr_req_msg *sidr_req_msg,
        cm_format_mad_hdr(&sidr_req_msg->hdr, CM_SIDR_REQ_ATTR_ID,
                          cm_form_tid(cm_id_priv, CM_MSG_SEQUENCE_SIDR));
        sidr_req_msg->request_id = cm_id_priv->id.local_id;
-       sidr_req_msg->pkey = cpu_to_be16(param->pkey);
+       sidr_req_msg->pkey = cpu_to_be16(param->path->pkey);
        sidr_req_msg->service_id = param->service_id;
 
        if (param->private_data && param->private_data_len)
This page took 0.061758 seconds and 5 git commands to generate.