From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 1F063567C for ; Fri, 25 Mar 2016 17:04:40 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 25 Mar 2016 09:04:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,391,1455004800"; d="scan'208";a="941480362" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.58]) by orsmga002.jf.intel.com with SMTP; 25 Mar 2016 09:04:40 -0700 Received: by (sSMTP sendmail emulation); Fri, 25 Mar 2016 16:04:37 +0025 Date: Fri, 25 Mar 2016 16:04:37 +0000 From: Bruce Richardson To: Jiangu Zhao Cc: helin.zhang@intel.com, dev@dpdk.org Message-ID: <20160325160437.GB15932@bricha3-MOBL3> References: <1458897421-24828-1-git-send-email-zhaojg@arraynetworks.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458897421-24828-1-git-send-email-zhaojg@arraynetworks.com.cn> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v2] i40e: fix using memory after free issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2016 16:04:41 -0000 On Fri, Mar 25, 2016 at 09:17:01AM +0000, Jiangu Zhao wrote: > The old code still uses entry in the next loop of LIST_FOREACH after free() in i40e_res_pool_destroy(). > Change to a safe way to free entry, which is similar with LIST_FOREACH_SAFE in FreeBSD. > > Fixes: 4861cde46116 ("i40e: new poll mode driver") > > Signed-off-by: Jiangu Zhao Acked-by: Bruce Richardson Applied to dpdk-next-net/rel_16_04 /Bruce