svn commit: r330035 - head/sys/netinet
Patrick Kelsey
pkelsey at FreeBSD.org
Mon Feb 26 20:31:17 UTC 2018
Author: pkelsey
Date: Mon Feb 26 20:31:16 2018
New Revision: 330035
URL: https://svnweb.freebsd.org/changeset/base/330035
Log:
Ensure signed comparison to avoid false trip of assert during VNET teardown.
Reported by: lwhsu
MFC after: 1 month
Modified:
head/sys/netinet/tcp_fastopen.c
Modified: head/sys/netinet/tcp_fastopen.c
==============================================================================
--- head/sys/netinet/tcp_fastopen.c Mon Feb 26 19:27:59 2018 (r330034)
+++ head/sys/netinet/tcp_fastopen.c Mon Feb 26 20:31:16 2018 (r330035)
@@ -1101,7 +1101,7 @@ tcp_fastopen_ccache_bucket_trim(struct tcp_fastopen_cc
if (entries > limit)
tcp_fastopen_ccache_entry_drop(cce, ccb);
}
- KASSERT(ccb->ccb_num_entries <= limit,
+ KASSERT(ccb->ccb_num_entries <= (int)limit,
("%s: ccb->ccb_num_entries %d exceeds limit %d", __func__,
ccb->ccb_num_entries, limit));
if (limit == 0) {
More information about the svn-src-all
mailing list