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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"