]> err.no Git - linux-2.6/commitdiff
RDMA/amso1100: Initialize the wait_queue_head_t in the c2_qp structure
authorTom Tucker <tom@opengridcomputing.com>
Tue, 24 Jul 2007 19:31:52 +0000 (14:31 -0500)
committerRoland Dreier <rolandd@cisco.com>
Sat, 28 Jul 2007 15:06:40 +0000 (08:06 -0700)
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>
drivers/infiniband/hw/amso1100/c2_qp.c

index 420c1380f5c3f5bddb9534c08621d4869f7e36c7..01d07862ea86257330958377032283d95201498d 100644 (file)
@@ -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);