diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-09-07 09:45:00 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-07 09:48:53 -0700 |
commit | 30a7e8ef13b2ff0db7b15af9afdd12b93783f01e (patch) | |
tree | 4abe6d08604274c4790ec49b9b6a341e0fafd58c /drivers/infiniband | |
parent | c9fe2b3287498b80781284306064104ef9c8a31a (diff) | |
download | op-kernel-dev-30a7e8ef13b2ff0db7b15af9afdd12b93783f01e.zip op-kernel-dev-30a7e8ef13b2ff0db7b15af9afdd12b93783f01e.tar.gz |
[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 c753f73..bcef06b 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; |