Commit 4e8e6ee3 authored by Tom Tucker's avatar Tom Tucker Committed by Roland Dreier

RDMA/amso1100: Initialize the wait_queue_head_t in the c2_qp structure

Fix a crash if the driver has to wait for a QP reference to be dropped
when destroying the QP.
Signed-off-by: default avatarEthan Burns <eaburns@iol.unh.edu>
Acked-by: default avatarTom Tucker <tom@opengridcomputing.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 1e4dcd22
...@@ -506,6 +506,7 @@ int c2_alloc_qp(struct c2_dev *c2dev, ...@@ -506,6 +506,7 @@ int c2_alloc_qp(struct c2_dev *c2dev,
qp->send_sgl_depth = qp_attrs->cap.max_send_sge; qp->send_sgl_depth = qp_attrs->cap.max_send_sge;
qp->rdma_write_sgl_depth = qp_attrs->cap.max_send_sge; qp->rdma_write_sgl_depth = qp_attrs->cap.max_send_sge;
qp->recv_sgl_depth = qp_attrs->cap.max_recv_sge; qp->recv_sgl_depth = qp_attrs->cap.max_recv_sge;
init_waitqueue_head(&qp->wait);
/* Initialize the SQ MQ */ /* Initialize the SQ MQ */
q_size = be32_to_cpu(reply->sq_depth); q_size = be32_to_cpu(reply->sq_depth);
......
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