aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mem_bulk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/mem_bulk.c')
-rw-r--r--src/vppinfra/mem_bulk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/mem_bulk.c b/src/vppinfra/mem_bulk.c
index 76fc7585e37..2f236b4785f 100644
--- a/src/vppinfra/mem_bulk.c
+++ b/src/vppinfra/mem_bulk.c
@@ -173,7 +173,7 @@ clib_mem_bulk_free (clib_mem_bulk_handle_t h, void *p)
u32 elt_idx = (offset - b->chunk_hdr_sz) / b->elt_sz;
ASSERT (elt_idx < b->elts_per_chunk);
- ASSERT (get_chunk_elt_ptr (b, c, elt_idx) != p);
+ ASSERT (get_chunk_elt_ptr (b, c, elt_idx) == p);
c->n_free++;