Skip to content

Commit

Permalink
fix qp reference for cq processing
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardMetzler committed Jun 12, 2017
1 parent c5b96ea commit 3ec0e2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/siw_cq.c
Expand Up @@ -109,7 +109,8 @@ int siw_reap_cqe(struct siw_cq *cq, struct ib_wc *ofa_wc)
QP_ID((struct siw_qp *)cqe->qp), OBJ_ID(cq),
cqe->opcode, cqe);

siw_qp_put(cqe->qp);
if (cq->kernel_verbs)
siw_qp_put(cqe->qp);

cqe->flags = 0;
cq->cq_get++;
Expand Down

0 comments on commit 3ec0e2f

Please sign in to comment.