Ensure signed comparison to avoid false trip of assert during VNET teardown.
Reported by: lwhsu MFC after: 1 month
This commit is contained in:
parent
9176635592
commit
1f13c23f3d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330035
@ -1101,7 +1101,7 @@ tcp_fastopen_ccache_bucket_trim(struct tcp_fastopen_ccache_bucket *ccb,
|
|||||||
if (entries > limit)
|
if (entries > limit)
|
||||||
tcp_fastopen_ccache_entry_drop(cce, ccb);
|
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__,
|
("%s: ccb->ccb_num_entries %d exceeds limit %d", __func__,
|
||||||
ccb->ccb_num_entries, limit));
|
ccb->ccb_num_entries, limit));
|
||||||
if (limit == 0) {
|
if (limit == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user