From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 1E8EC1B1BD for ; Wed, 24 Jan 2018 16:41:30 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CAD3122719; Wed, 24 Jan 2018 10:41:29 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:41:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=bvKa6nG6TuKM72dwn yBK9Hzg8DBo59iUnm3e2tXBWJg=; b=UyKo3DOLA+3R8+EYEczOyUqW53h3oEjuT lq2skgGvP8UXubh9rMZZ6IP4ZmodXwKazLGxazM2uCWzAu54Qc5W1+VmRZhWzMsW T36kXGpMPvjq+i2nw4/6+BFvi8fHBILhKSpx0qkjJLvKvL3FZrkgxIqLeNEH2b6q d3RCvXgchGB5+mGfXQQnG+CbrHrs8q6wCdHLo5T4hSP/HJCTR7lOoOnXCM6O09wc SdYgGZqeNNyQgLdQNORxcvaGO+WpppIpSjrN+D5WqsHmNfw+FSH/hnS/MDbwhGU2 0QVfxJ81EPrQnTTvxL7zuCp2W+WH173ORMW3+fl9ZSg2VdyZFfCbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=bvKa6nG6TuKM72dwnyBK9Hzg8DBo59iUnm3e2tXBWJg=; b=fGGuKwAe WxGcGBGXOZX5Wp3IRWm/wDnjgALHn/pGEzxs5yQlWHQCep262vFeEcYXYmMRGHM4 GnHFwczbRO6XHCvs7YalY07HpNwugpNdPMIDMEco6Hsd/ZQ9rYIh9+2UpXF+6oEO 1VvLxvHymmOSzeHWEtfXJC8Vebpqm5/j1y8ufj+Smh7Mx05VPj5Zp2pTZd9/CgYE 2vPbxGIRbxqMNvSS80sbiYw/JKAvb72sGVS97jD2bltSoaKEhed6rfqKVYiOUlHT 0M/yVVDTJqctksYyNHmIfBpIPbGR0oOOGCMglJi22X/eUrZyjQrAgvdeOrxZvOY4 6sCNbJidZOKsUQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 57B4E7E1A2; Wed, 24 Jan 2018 10:41:26 -0500 (EST) From: Yuanhan Liu To: Phil Yang Cc: Jianbo Liu , Anatoly Burakov , dpdk stable Date: Wed, 24 Jan 2018 23:33:13 +0800 Message-Id: <1516808026-25523-125-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'test/memzone: fix freeing test' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:41:30 -0000 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 44aa3126c7c088c5dac74bc0bcd235ad64ae9b9a Mon Sep 17 00:00:00 2001 From: Phil Yang 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 Acked-by: Jianbo Liu Acked-by: Anatoly Burakov --- test/test/test_memzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c index f734754..1115ee0 100644 --- a/test/test/test_memzone.c +++ b/test/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.7.4