vcl: fix epoll wait assert 74/41974/2
authorFlorin Coras <[email protected]>
Sat, 7 Dec 2024 00:50:43 +0000 (16:50 -0800)
committerFlorin Coras <[email protected]>
Sat, 7 Dec 2024 00:26:41 +0000 (00:26 +0000)
Type: fix

Found by Lucas.

Signed-off-by: Florin Coras <[email protected]>
Change-Id: I3e10d3a9f40ef28cb9bda58f199a04dfc3e41d27

src/vcl/vppcom.c

index d297358..d084c09 100644 (file)
@@ -3464,7 +3464,7 @@ vcl_epoll_wait_handle_mq (vcl_worker_t * wrk, svm_msg_q_t * mq,
            return 0;
        }
     }
-  ASSERT (maxevents > *num_ev);
+  ASSERT (maxevents >= *num_ev);
   vcl_mq_dequeue_batch (wrk, mq, ~0);
 
 handle_dequeued: