test/memzone: fix freeing test
authorPhil Yang <phil.yang@arm.com>
Mon, 15 Jan 2018 05:43:33 +0000 (13:43 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jan 2018 23:53:43 +0000 (00:53 +0100)
commitc281b4fc71ddefe809994be10f53b87e1ba6c669
tree51979aae540c206b4a91e497258df4f401963d60
parenta7b5b4f1b3febec68dc7b8ba339f4b222750952b
test/memzone: fix freeing test

When reserving memzone for mz[], it will out of mz[RTE_MAX_MEMZONE] memory
bound after the counter reached to RTE_MAX_MEMZONE. It will flush the
counter's memory and lead to mz[] memory cannot be freed.

Fixd by extend to mz[RTE_MAX_MEMZONE + 1].

Fixes: ff909fe21f0a ("mem: introduce memzone freeing")
Cc: stable@dpdk.org
Signed-off-by: Phil Yang <phil.yang@arm.com>
Acked-by: Jianbo Liu <jianbo.liu@arm.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
test/test/test_memzone.c