diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-09-07 18:45:00 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-07 18:48:53 +0200 |
commit | 30a7e8ef13b2ff0db7b15af9afdd12b93783f01e (patch) | |
tree | 4abe6d08604274c4790ec49b9b6a341e0fafd58c /drivers/infiniband | |
parent | [PATCH] IB: really reset QPs (diff) | |
download | linux-30a7e8ef13b2ff0db7b15af9afdd12b93783f01e.tar.xz linux-30a7e8ef13b2ff0db7b15af9afdd12b93783f01e.zip |
[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, int i; atomic_set(&qp->refcount, 1); + init_waitqueue_head(&qp->wait); qp->state = IB_QPS_RESET; qp->atomic_rd_en = 0; qp->resp_depth = 0; |