From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6F8B99E3 for ; Fri, 28 Apr 2017 06:59:51 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP; 27 Apr 2017 21:59:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,387,1488873600"; d="scan'208";a="95162548" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga006.fm.intel.com with ESMTP; 27 Apr 2017 21:59:49 -0700 Date: Fri, 28 Apr 2017 12:56:22 +0800 From: Yuanhan Liu To: hanxueluo@126.com Cc: dev@dpdk.org, Huanle Han Message-ID: <20170428045622.GR11512@yliu-dev.sh.intel.com> References: <1487599487-12574-1-git-send-email-hanxueluo@126.com> <1487599487-12574-2-git-send-email-hanxueluo@126.com> <20170222022413.GM18844@yliu-dev.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170222022413.GM18844@yliu-dev.sh.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 2/3] net/virtio: fix crash when close virtio dev twice 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: Fri, 28 Apr 2017 04:59:51 -0000 On Wed, Feb 22, 2017 at 10:24:13AM +0800, Yuanhan Liu wrote: > On Mon, Feb 20, 2017 at 10:04:46PM +0800, hanxueluo@126.com wrote: > > From: Huanle Han > > > > This commit fixs segment fault when rte_eth_dev_close() > > is called on a virtio dev more than once. > > Assigning zero after free to avoids freed memory to > > be accessed again. > > Thanks for the fix! And here are few more minor nits you might want be > awre of: > > - a fix patch needs a fixline (check http://dpdk.org/dev for howto just > in case you don't know) > > - if it fixes a fatal bug (like this one), it should also be picked (or > backported) to a specific stable release. In this case, you should add > Cc: stable@dpdk.org > > just before your SoB (Signed-off-by). Applied to dpdk-next-virtio with: Fixes: 69c80d4ef89b ("net/virtio: allocate queue at init stage") Cc: stable@dpdk.org Thanks. --yliu