diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-09-07 12:45:00 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-07 12:48:53 -0400 |
commit | 30a7e8ef13b2ff0db7b15af9afdd12b93783f01e (patch) | |
tree | 4abe6d08604274c4790ec49b9b6a341e0fafd58c /drivers/infiniband | |
parent | c9fe2b3287498b80781284306064104ef9c8a31a (diff) |
[PATCH] IB: Initialize qp->wait
Add missing call to init_waitqueue_head().
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-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; |