The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=15b73a2a14d12a57bcdad8e6a5945396c0fd1e51

commit 15b73a2a14d12a57bcdad8e6a5945396c0fd1e51
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2022-09-14 15:32:07 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2022-09-14 15:32:07 +0000

    ip_reass: use correct comparison in ipreass_callout()
    
    Reported-by:    [email protected]
---
 sys/netinet/ip_reass.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netinet/ip_reass.c b/sys/netinet/ip_reass.c
index a10dff9c8acb..06cdbca2961c 100644
--- a/sys/netinet/ip_reass.c
+++ b/sys/netinet/ip_reass.c
@@ -599,11 +599,11 @@ ipreass_callout(void *arg)
 
        CURVNET_SET(bucket->vnet);
        fp = TAILQ_LAST(&bucket->head, ipqhead);
-       KASSERT(fp != NULL && fp->ipq_expire >= time_uptime,
+       KASSERT(fp != NULL && fp->ipq_expire <= time_uptime,
            ("%s: stray callout on bucket %p, %ju < %ju", __func__, bucket,
            fp ? (uintmax_t)fp->ipq_expire : 0, (uintmax_t)time_uptime));
 
-       while (fp != NULL && fp->ipq_expire >= time_uptime) {
+       while (fp != NULL && fp->ipq_expire <= time_uptime) {
                ipq_timeout(bucket, fp);
                fp = TAILQ_LAST(&bucket->head, ipqhead);
        }

Reply via email to