[dpdk-stable] patch 'test/memzone: fix NULL freeing' has been queued to LTS release 17.11.1

Yuanhan Liu yliu at fridaylinux.org
Wed Jan 24 16:33:12 CET 2018


Hi,

FYI, your patch has been queued to LTS release 17.11.1

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/26/18. So please
shout if anyone has objections.

Thanks.

	--yliu

---
>From 0d4f00ad24ebe525605190780a0c24182e1c5c68 Mon Sep 17 00:00:00 2001
From: Phil Yang <phil.yang at arm.com>
Date: Mon, 15 Jan 2018 13:43:32 +0800
Subject: [PATCH] test/memzone: fix NULL freeing

[ upstream commit a7b5b4f1b3febec68dc7b8ba339f4b222750952b ]

No need to free a NULL memzone. It will cause test
termination.

Fixes: 71330483a193 ("test/memzone: fix memory leak")

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>
---
 test/test/test_memzone.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c
index 49b6b68..f734754 100644
--- a/test/test/test_memzone.c
+++ b/test/test/test_memzone.c
@@ -280,10 +280,6 @@ test_memzone_reserve_flags(void)
 				printf("MEMZONE FLAG 2MB\n");
 				return -1;
 			}
-			if (rte_memzone_free(mz)) {
-				printf("Fail memzone free\n");
-				return -1;
-			}
 		}
 
 		if (hugepage_2MB_avail && hugepage_1GB_avail) {
-- 
2.7.4



More information about the stable mailing list