提交 30a7e8ef 编写于 作者: M Michael S. Tsirkin 提交者: Roland Dreier

[PATCH] IB: Initialize qp->wait

Add missing call to init_waitqueue_head().
Signed-off-by: NMichael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 c9fe2b32
...@@ -1044,6 +1044,7 @@ static int mthca_alloc_qp_common(struct mthca_dev *dev, ...@@ -1044,6 +1044,7 @@ static int mthca_alloc_qp_common(struct mthca_dev *dev,
int i; int i;
atomic_set(&qp->refcount, 1); atomic_set(&qp->refcount, 1);
init_waitqueue_head(&qp->wait);
qp->state = IB_QPS_RESET; qp->state = IB_QPS_RESET;
qp->atomic_rd_en = 0; qp->atomic_rd_en = 0;
qp->resp_depth = 0; qp->resp_depth = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册