From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH 2/3] net/virtio: fix crash when close virtio dev twice Date: Fri, 28 Apr 2017 12:56:22 +0800 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 Cc: dev@dpdk.org, Huanle Han To: hanxueluo@126.com 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) Content-Disposition: inline In-Reply-To: <20170222022413.GM18844@yliu-dev.sh.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" 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