aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_cm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index b21fde8b659d..135f80044de5 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -1687,12 +1687,11 @@ int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
1687 return -ECONNRESET; 1687 return -ECONNRESET;
1688 } 1688 }
1689 BUG_ON(state_read(&ep->com) != MPA_REQ_RCVD); 1689 BUG_ON(state_read(&ep->com) != MPA_REQ_RCVD);
1690 state_set(&ep->com, CLOSING);
1691 if (mpa_rev == 0) 1690 if (mpa_rev == 0)
1692 abort_connection(ep, NULL, GFP_KERNEL); 1691 abort_connection(ep, NULL, GFP_KERNEL);
1693 else { 1692 else {
1694 err = send_mpa_reject(ep, pdata, pdata_len); 1693 err = send_mpa_reject(ep, pdata, pdata_len);
1695 err = send_halfclose(ep, GFP_KERNEL); 1694 err = iwch_ep_disconnect(ep, 0, GFP_KERNEL);
1696 } 1695 }
1697 return 0; 1696 return 0;
1698} 1697}