mempool: fix local cache initialization
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Thu, 9 Jun 2016 08:19:47 +0000 (09:19 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 15 Jun 2016 13:58:34 +0000 (15:58 +0200)
commit43b194b43344b262b00f6c8a24443b46ed82009b
treedda6fe54770f33e96c3318db3403d74f5fcd3662
parent1dbba1650c897d41389080e88502c9922551cb73
mempool: fix local cache initialization

The mempool local cache was not initialized properly leading to
undefined behavior in cases where the allocated memory was used
previously and left with data.

Fixes: 213af31e0960 ("mempool: reduce structure size if no cache needed")

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.c