diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-11-28 11:06:22 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-11-28 11:06:22 +0000 |
commit | c26aab3feb0ea7c0b8022d85a761e79444ff9ad0 (patch) | |
tree | 24b8ac7fa43e70d0d20253881e048b2c18cf0856 /sys/netinet/tcp_input.c | |
parent | fb1ee2ed371291dbdcd2f4516c7cb80096208174 (diff) | |
download | FreeBSD-src-c26aab3feb0ea7c0b8022d85a761e79444ff9ad0.zip FreeBSD-src-c26aab3feb0ea7c0b8022d85a761e79444ff9ad0.tar.gz |
Assert the inpcb lock in tcp_xmit_timer() as it performs read-modify-
write of various time/rtt-related fields in the tcpcb.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 9295666..3eb7fc8 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -2640,6 +2640,8 @@ tcp_xmit_timer(tp, rtt) { register int delta; + INP_LOCK_ASSERT(tp->t_inpcb); + tcpstat.tcps_rttupdated++; tp->t_rttupdated++; if (tp->t_srtt != 0) { |