ck_bag: Fix overallocation bug.

Initialize bag->n_blocks to fix overallocation bug
during initial ck_bag_put_spmc.
ck_pring
Abel Mathew 13 years ago
parent 95fb141f0c
commit 854ede8cfe

@ -53,6 +53,7 @@ ck_bag_init(struct ck_bag *bag,
bag->avail_head = bag->avail_tail = NULL; bag->avail_head = bag->avail_tail = NULL;
bag->head = NULL; bag->head = NULL;
bag->n_entries = 0; bag->n_entries = 0;
bag->n_blocks = 0;
bag->alloc_strat = as; bag->alloc_strat = as;
/* /*

Loading…
Cancel
Save