From 8ceee8e7dea1fb07f9ccf6a037d0571fea328afc Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Thu, 21 Dec 2017 18:19:42 +0000 Subject: [PATCH] test/memzone: fix typo Fixes: 71330483a193 ("test/memzone: fix memory leak") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov Reviewed-by: Radoslaw Biernacki --- test/test/test_memzone.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c index 6e8097777b..68c20dca07 100644 --- a/test/test/test_memzone.c +++ b/test/test/test_memzone.c @@ -919,11 +919,11 @@ test_memzone_basic(void) return 0; } -static int memzone_calk_called; +static int memzone_walk_called; static void memzone_walk_clb(const struct rte_memzone *mz __rte_unused, void *arg __rte_unused) { - memzone_calk_called = 1; + memzone_walk_called = 1; } static int @@ -967,7 +967,7 @@ test_memzone(void) printf("check memzone cleanup\n"); rte_memzone_walk(memzone_walk_clb, NULL); - if (memzone_calk_called) { + if (memzone_walk_called) { printf("there are some memzones left after test\n"); rte_memzone_dump(stdout); return -1; -- 2.20.1