From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 5EDDAA48D for ; Mon, 15 Jan 2018 10:49:08 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2018 01:49:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,363,1511856000"; d="scan'208";a="10815655" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.237.220.145]) ([10.237.220.145]) by fmsmga002.fm.intel.com with ESMTP; 15 Jan 2018 01:49:03 -0800 To: Phil Yang , dev@dpdk.org Cc: jianbo.liu@arm.com, herbert.guan@arm.com References: <1515663706-762-1-git-send-email-phil.yang@arm.com> <1515995546-5981-1-git-send-email-phil.yang@arm.com> <1515995546-5981-3-git-send-email-phil.yang@arm.com> From: "Burakov, Anatoly" Message-ID: <85695ff5-75f0-d75a-45a5-ef59f3bd5ec4@intel.com> Date: Mon, 15 Jan 2018 09:49:02 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1515995546-5981-3-git-send-email-phil.yang@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2 2/2] test/memzone: Fix test_memzone_free issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 09:49:08 -0000 On 15-Jan-18 5:52 AM, Phil Yang wrote: > 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]. > > Signed-off-by: Phil Yang > --- Acked-by: Anatoly Burakov -- Thanks, Anatoly