Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4e8e6ee380c3858151165d7455b4954782f145a0
Commit:     4e8e6ee380c3858151165d7455b4954782f145a0
Parent:     1e4dcd22efa7d24f637ab2ea3a77dd65774eb005
Author:     Tom Tucker <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 24 14:31:52 2007 -0500
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Sat Jul 28 08:06:40 2007 -0700

    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 <[EMAIL PROTECTED]>
    Acked-by: Tom Tucker <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 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 420c138..01d0786 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,
        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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to