diff options
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_provider.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c index b357c11d148f..9fe7dfeb7c80 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c +++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c | |||
@@ -738,10 +738,8 @@ static int iwch_destroy_qp(struct ib_qp *ib_qp) | |||
738 | qhp = to_iwch_qp(ib_qp); | 738 | qhp = to_iwch_qp(ib_qp); |
739 | rhp = qhp->rhp; | 739 | rhp = qhp->rhp; |
740 | 740 | ||
741 | if (qhp->attr.state == IWCH_QP_STATE_RTS) { | 741 | attrs.next_state = IWCH_QP_STATE_ERROR; |
742 | attrs.next_state = IWCH_QP_STATE_ERROR; | 742 | iwch_modify_qp(rhp, qhp, IWCH_QP_ATTR_NEXT_STATE, &attrs, 0); |
743 | iwch_modify_qp(rhp, qhp, IWCH_QP_ATTR_NEXT_STATE, &attrs, 0); | ||
744 | } | ||
745 | wait_event(qhp->wait, !qhp->ep); | 743 | wait_event(qhp->wait, !qhp->ep); |
746 | 744 | ||
747 | remove_handle(rhp, &rhp->qpidr, qhp->wq.qpid); | 745 | remove_handle(rhp, &rhp->qpidr, qhp->wq.qpid); |