Date: Tue, 16 Jun 2009 10:00:30 GMT From: Fang Wang <fangwang@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 164488 for review Message-ID: <200906161000.n5GA0UMO029807@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164488 Change 164488 by fangwang@fangwang_utobsd on 2009/06/16 09:59:52 Fix panic problem. Affected files ... .. //depot/projects/soc2009/tcputo/src/sys/netinet/tcp_syncache.c#6 edit Differences ... ==== //depot/projects/soc2009/tcputo/src/sys/netinet/tcp_syncache.c#6 (text+ko) ==== @@ -978,6 +978,8 @@ u_int32_t flowtmp; int win, sb_hiwat, ip_ttl, ip_tos, noopt; char *s; + u_int8_t uto_flags; + u_int16_t snd_uto; #ifdef INET6 int autoflowlabel = 0; #endif @@ -1011,6 +1013,9 @@ sb_hiwat = so->so_rcv.sb_hiwat; noopt = (tp->t_flags & TF_NOOPT); + uto_flags = tp->uto_flags; + snd_uto = tp->snd_uto; + /* By the time we drop the lock these should no longer be used. */ so = NULL; tp = NULL; @@ -1221,8 +1226,8 @@ sc->sc_peer_uto = to->to_uto; sc->sc_flags |= SCF_RCVD_UTO; } - if (tp->uto_flags & TCPUTO_NEED) { - sc->sc_uto = tp->snd_uto; + if (uto_flags & TCPUTO_NEED) { + sc->sc_uto = snd_uto; sc->sc_flags = SCF_UTO; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906161000.n5GA0UMO029807>