aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/cxgb4/cm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index b188d89674f1..ae90b2932bd2 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -1941,8 +1941,10 @@ static int abort_rpl(struct c4iw_dev *dev, struct sk_buff *skb)
1941 } 1941 }
1942 mutex_unlock(&ep->com.mutex); 1942 mutex_unlock(&ep->com.mutex);
1943 1943
1944 if (release) 1944 if (release) {
1945 close_complete_upcall(ep, -ECONNRESET);
1945 release_ep_resources(ep); 1946 release_ep_resources(ep);
1947 }
1946 c4iw_put_ep(&ep->com); 1948 c4iw_put_ep(&ep->com);
1947 return 0; 1949 return 0;
1948} 1950}
@@ -3684,7 +3686,6 @@ int c4iw_ep_disconnect(struct c4iw_ep *ep, int abrupt, gfp_t gfp)
3684 if (close) { 3686 if (close) {
3685 if (abrupt) { 3687 if (abrupt) {
3686 set_bit(EP_DISC_ABORT, &ep->com.history); 3688 set_bit(EP_DISC_ABORT, &ep->com.history);
3687 close_complete_upcall(ep, -ECONNRESET);
3688 ret = send_abort(ep); 3689 ret = send_abort(ep);
3689 } else { 3690 } else {
3690 set_bit(EP_DISC_CLOSE, &ep->com.history); 3691 set_bit(EP_DISC_CLOSE, &ep->com.history);