Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2008 20:08:21 GMT
From:      Steve Wise <swise@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 136183 for review
Message-ID:  <200802252008.m1PK8LIn008871@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=136183

Change 136183 by swise@swise:vic10:iwarp on 2008/02/25 20:08:15

	Don't use socket ptr after closing in process_connected().

Affected files ...

.. //depot/projects/iwarp/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.c#6 edit

Differences ...

==== //depot/projects/iwarp/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cm.c#6 (text+ko) ====

@@ -1543,8 +1543,8 @@
 	if ((ep->com.so->so_state & SS_ISCONNECTED) && !ep->com.so->so_error) {
 		send_mpa_req(ep);
 	} else {
+		connect_reply_upcall(ep, -ep->com.so->so_error);
 		close_socket(&ep->com);
-		connect_reply_upcall(ep, -ep->com.so->so_error);
 		state_set(&ep->com, DEAD);
 		put_ep(&ep->com);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802252008.m1PK8LIn008871>