1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

iw_cxgbe: Shut down the socket but do not close the fd in case of error.

The fd is closed later in this case.  This fixes a "SS_NOFDREF on enter"
panic.

Submitted by:	Krishnamraju Eraparaju @ Chelsio
Reviewed by:	Steve Wise @ Open Grid Computing
This commit is contained in:
Navdeep Parhar 2016-01-05 01:32:40 +00:00
parent b8c23099c6
commit 9f6b62e791
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293185

View File

@ -474,7 +474,7 @@ process_conn_error(struct c4iw_ep *ep)
if (state != ABORTING) {
CTR2(KTR_IW_CXGBE, "%s:pce1 %p", __func__, ep);
close_socket(&ep->com, 1);
close_socket(&ep->com, 0);
state_set(&ep->com, DEAD);
c4iw_put_ep(&ep->com);
}