Skip to content

Commit a62ab66

Browse files
mustafakismaildledford
authored andcommitted
RDMA/core: Initialize port_num in qp_attr
Initialize the port_num for iWARP in rdma_init_qp_attr. Fixes: 5ecce4c("Check port number supplied by user verbs cmds") Cc: <[email protected]> # v2.6.14+ Reviewed-by: Steve Wise <[email protected]> Signed-off-by: Mustafa Ismail <[email protected]> Tested-by: Mike Marciniszyn <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 5a7a88f commit a62ab66

File tree

1 file changed

+2
-0
lines changed
  • drivers/infiniband/core

1 file changed

+2
-0
lines changed

drivers/infiniband/core/cma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,8 @@ int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr,
10331033
} else
10341034
ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr,
10351035
qp_attr_mask);
1036+
qp_attr->port_num = id_priv->id.port_num;
1037+
*qp_attr_mask |= IB_QP_PORT;
10361038
} else
10371039
ret = -ENOSYS;
10381040

0 commit comments

Comments
 (0)