cxgbe/iw_cxgbe: Abort connection if there is an error during c4iw_modify_qp.

Submitted by:	KrishnamRaju ErapaRaju @ Chelsio
MFC after:	3 days
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar 2017-03-07 01:13:26 +00:00
parent b5b023b91e
commit 1081f354af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314814

View File

@ -1427,6 +1427,7 @@ int c4iw_modify_qp(struct c4iw_dev *rhp, struct c4iw_qp *qhp,
qhp->ep = NULL;
set_state(qhp, C4IW_QP_STATE_ERROR);
free = 1;
abort = 1;
BUG_ON(!ep);
flush_qp(qhp);
wake_up(&qhp->wait);