mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
RDMA/amso1100: Initialize the wait_queue_head_t in the c2_qp structure
Fix a crash if the driver has to wait for a QP reference to be dropped when destroying the QP. Signed-off-by: Ethan Burns <[email protected]> Acked-by: Tom Tucker <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
1e4dcd22ef
commit
4e8e6ee380
1 changed files with 1 additions and 0 deletions
|
|
@ -506,6 +506,7 @@ int c2_alloc_qp(struct c2_dev *c2dev,
|
|||
qp->send_sgl_depth = qp_attrs->cap.max_send_sge;
|
||||
qp->rdma_write_sgl_depth = qp_attrs->cap.max_send_sge;
|
||||
qp->recv_sgl_depth = qp_attrs->cap.max_recv_sge;
|
||||
init_waitqueue_head(&qp->wait);
|
||||
|
||||
/* Initialize the SQ MQ */
|
||||
q_size = be32_to_cpu(reply->sq_depth);
|
||||
|
|
|
|||
Loading…
Reference in a new issue