Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Michael S. Tsirkin and committed by
Roland Dreier
30a7e8ef c9fe2b32

+1
+1
drivers/infiniband/hw/mthca/mthca_qp.c
··· 1044 1044 int i; 1045 1045 1046 1046 atomic_set(&qp->refcount, 1); 1047 + init_waitqueue_head(&qp->wait); 1047 1048 qp->state = IB_QPS_RESET; 1048 1049 qp->atomic_rd_en = 0; 1049 1050 qp->resp_depth = 0;