aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_qp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c
index 027664979fe2..eef415b12b2e 100644
--- a/drivers/infiniband/hw/mthca/mthca_qp.c
+++ b/drivers/infiniband/hw/mthca/mthca_qp.c
@@ -2284,10 +2284,10 @@ void mthca_free_err_wqe(struct mthca_dev *dev, struct mthca_qp *qp, int is_send,
2284 struct mthca_next_seg *next; 2284 struct mthca_next_seg *next;
2285 2285
2286 /* 2286 /*
2287 * For SRQs, all WQEs generate a CQE, so we're always at the 2287 * For SRQs, all receive WQEs generate a CQE, so we're always
2288 * end of the doorbell chain. 2288 * at the end of the doorbell chain.
2289 */ 2289 */
2290 if (qp->ibqp.srq) { 2290 if (qp->ibqp.srq && !is_send) {
2291 *new_wqe = 0; 2291 *new_wqe = 0;
2292 return; 2292 return;
2293 } 2293 }