From: Patrick Marchand Latifi Date: Thu, 31 Jan 2008 08:24:37 +0000 (-0800) Subject: IB/ipath: Fix error completion put on send CQ instead of recv CQ X-Git-Tag: v2.6.25-rc6~15^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=2a049e514b890c8b70b965bbd9f4e3c963af69c9;p=~emulex%2Finfiniband.git IB/ipath: Fix error completion put on send CQ instead of recv CQ A work completion entry could be placed on the wrong completion queue when an RC QP is placed in the error state. Signed-off-by: Patrick Marchand Latifi Acked-by: Ralph Campbell Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/ipath/ipath_qp.c b/drivers/infiniband/hw/ipath/ipath_qp.c index 553d9007cf0..087ed316647 100644 --- a/drivers/infiniband/hw/ipath/ipath_qp.c +++ b/drivers/infiniband/hw/ipath/ipath_qp.c @@ -415,7 +415,7 @@ int ipath_error_qp(struct ipath_qp *qp, enum ib_wc_status err) wc.wr_id = qp->r_wr_id; wc.opcode = IB_WC_RECV; wc.status = err; - ipath_cq_enter(to_icq(qp->ibqp.send_cq), &wc, 1); + ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1); } wc.status = IB_WC_WR_FLUSH_ERR;