aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-12-23 10:18:16 -0800
committerFlorin Coras <fcoras@cisco.com>2020-12-23 10:40:08 -0800
commit7b0fa5569516992aa81c626aa2b426a81eb0ecab (patch)
treea3cffbe29c57b273a50836f6097a5926ab5b6ebf /src/vppinfra
parentdd9299c68a02b7c476cb60b8d9ac4e145503a44f (diff)
vppinfra: mem bulk test
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Icd44ede9604c29839af250a2be93ecf467467aa0
Diffstat (limited to 'src/vppinfra')
-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++;