[dpdk-stable] patch 'test/memzone: fix freeing test' has been queued to LTS release 16.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Fri Jan 26 14:13:27 CET 2018
Hi,
FYI, your patch has been queued to LTS release 16.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 01/28/18. So please
shout if anyone has objections.
Thanks.
Luca Boccassi
---
>From 843f976ae13e79a7a828486ecf0efcbcab1e4cb6 Mon Sep 17 00:00:00 2001
From: Phil Yang <phil.yang at arm.com>
Date: Mon, 15 Jan 2018 13:43:33 +0800
Subject: [PATCH] test/memzone: fix freeing test
[ upstream commit c281b4fc71ddefe809994be10f53b87e1ba6c669 ]
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")
Signed-off-by: Phil Yang <phil.yang at arm.com>
Acked-by: Jianbo Liu <jianbo.liu at arm.com>
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
app/test/test_memzone.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c
index 545cbe647..91d8e6a87 100644
--- a/app/test/test_memzone.c
+++ b/app/test/test_memzone.c
@@ -789,7 +789,7 @@ test_memzone_bounded(void)
static int
test_memzone_free(void)
{
- const struct rte_memzone *mz[RTE_MAX_MEMZONE];
+ const struct rte_memzone *mz[RTE_MAX_MEMZONE + 1];
int i;
char name[20];
--
2.14.2
More information about the stable
mailing list