diff options
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_qp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c index c753f7375a5d..bcef06bf15e7 100644 --- a/drivers/infiniband/hw/mthca/mthca_qp.c +++ b/drivers/infiniband/hw/mthca/mthca_qp.c | |||
@@ -1044,6 +1044,7 @@ static int mthca_alloc_qp_common(struct mthca_dev *dev, | |||
1044 | int i; | 1044 | int i; |
1045 | 1045 | ||
1046 | atomic_set(&qp->refcount, 1); | 1046 | atomic_set(&qp->refcount, 1); |
1047 | init_waitqueue_head(&qp->wait); | ||
1047 | qp->state = IB_QPS_RESET; | 1048 | qp->state = IB_QPS_RESET; |
1048 | qp->atomic_rd_en = 0; | 1049 | qp->atomic_rd_en = 0; |
1049 | qp->resp_depth = 0; | 1050 | qp->resp_depth = 0; |