diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-07-24 15:31:52 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-28 11:06:40 -0400 |
commit | 4e8e6ee380c3858151165d7455b4954782f145a0 (patch) | |
tree | 6f774551bd13751cf3d5cad99e9c7b9558bd1b31 /drivers/infiniband | |
parent | 1e4dcd22efa7d24f637ab2ea3a77dd65774eb005 (diff) |
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: Ethan Burns <eaburns@iol.unh.edu>
Acked-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/amso1100/c2_qp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/amso1100/c2_qp.c b/drivers/infiniband/hw/amso1100/c2_qp.c index 420c1380f5c3..01d07862ea86 100644 --- a/drivers/infiniband/hw/amso1100/c2_qp.c +++ b/drivers/infiniband/hw/amso1100/c2_qp.c | |||
@@ -506,6 +506,7 @@ int c2_alloc_qp(struct c2_dev *c2dev, | |||
506 | qp->send_sgl_depth = qp_attrs->cap.max_send_sge; | 506 | qp->send_sgl_depth = qp_attrs->cap.max_send_sge; |
507 | qp->rdma_write_sgl_depth = qp_attrs->cap.max_send_sge; | 507 | qp->rdma_write_sgl_depth = qp_attrs->cap.max_send_sge; |
508 | qp->recv_sgl_depth = qp_attrs->cap.max_recv_sge; | 508 | qp->recv_sgl_depth = qp_attrs->cap.max_recv_sge; |
509 | init_waitqueue_head(&qp->wait); | ||
509 | 510 | ||
510 | /* Initialize the SQ MQ */ | 511 | /* Initialize the SQ MQ */ |
511 | q_size = be32_to_cpu(reply->sq_depth); | 512 | q_size = be32_to_cpu(reply->sq_depth); |