From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] kni: fix unit test segfault Date: Fri, 05 May 2017 15:55:11 +0200 Message-ID: <1925837.mma5Bi0xzW@xps> References: <20170503161037.3763-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, stable@dpdk.org To: Ferruh Yigit Return-path: In-Reply-To: <20170503161037.3763-1-ferruh.yigit@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 03/05/2017 18:10, Ferruh Yigit: > To clean alloc_q, which has physicall addresses of the mbufs, kni lib > free the pkt_mempool, but this leads a crash in kni unit test. > > KNI library shouldn't free the pkt_mempool. > > Implementation updated to find the mbufs in the alloc_q and return them > back to mempool. > > Fixes: 8eba5ebd1811 ("kni: fix possible memory leak") > > Signed-off-by: Ferruh Yigit Cc: stable@dpdk.org Applied, thanks