X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fbihash_template.c;h=56c410b5a51eda2da00f3f765beb141fe3fe8c74;hb=refs%2Fchanges%2F52%2F9852%2F2;hp=2a5a5cd228ae79b3b7ab986de5b3ef86f979aeea;hpb=2951d901a5b6ac48b0203b2da9e35ea419b9b4d6;p=vpp.git diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c index 2a5a5cd228a..56c410b5a51 100644 --- a/src/vppinfra/bihash_template.c +++ b/src/vppinfra/bihash_template.c @@ -35,6 +35,7 @@ void BV (clib_bihash_init) vec_validate_aligned (h->buckets, nbuckets - 1, CLIB_CACHE_LINE_BYTES); h->writer_lock = clib_mem_alloc_aligned (CLIB_CACHE_LINE_BYTES, CLIB_CACHE_LINE_BYTES); + h->writer_lock[0] = 0; for (i = 0; i < nbuckets; i++) BV (clib_bihash_reset_cache) (h->buckets + i);