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
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user