Skip to content

Commit

Permalink
RDMA/amso1100: Initialize the wait_queue_head_t in the c2_qp structure
Browse files Browse the repository at this point in the history
Fix a crash if the driver has to wait for a QP reference to be dropped
when destroying the QP.

Signed-off-by: Ethan Burns <eaburns@iol.unh.edu>
Acked-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Tom Tucker authored and Roland Dreier committed Jul 28, 2007
1 parent 1e4dcd2 commit 4e8e6ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/amso1100/c2_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ int c2_alloc_qp(struct c2_dev *c2dev,
qp->send_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;
init_waitqueue_head(&qp->wait);

/* Initialize the SQ MQ */
q_size = be32_to_cpu(reply->sq_depth);
Expand Down

0 comments on commit 4e8e6ee

Please sign in to comment.