Ensure signed comparison to avoid false trip of assert during VNET teardown.

Reported by:	lwhsu
MFC after:	1 month
This commit is contained in:
Patrick Kelsey 2018-02-26 20:31:16 +00:00
parent 9176635592
commit 1f13c23f3d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330035

View File

@ -1101,7 +1101,7 @@ tcp_fastopen_ccache_bucket_trim(struct tcp_fastopen_ccache_bucket *ccb,
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) {