X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash.c;h=003ab0bd0236d39ee4c591c2dccec6a3266bfca9;hp=f6c901bb0d4f242ecfa5b8bce0077313bee56f54;hb=b9e36678a644361b1043b2f20e023d6434377fb4;hpb=21263e2119a45df1dfa25e71e7a4dd15af73f791 diff --git a/rculfhash.c b/rculfhash.c index f6c901b..003ab0b 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -895,7 +895,7 @@ void fini_table(struct cds_lfht *ht, struct rcu_table *t, * removal so gc lookups use non-logically-removed dummy * nodes. */ - t->size = 1UL << (i - 2); + t->size = (i == 1) ? 0 : 1UL << (i - 2); /* Unlink */ for (j = 0; j < len; j++) { struct cds_lfht_node *fini_node =