test/memzone: fix typo
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 21 Dec 2017 18:19:42 +0000 (18:19 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jan 2018 23:32:48 +0000 (00:32 +0100)
Fixes: 71330483a193 ("test/memzone: fix memory leak")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Radoslaw Biernacki <radoslaw.biernacki@linaro.org>
test/test/test_memzone.c

index 6e80977..68c20dc 100644 (file)
@@ -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;