[dpdk-dev] [PATCH 2/3] net/virtio: fix crash when close virtio dev twice
Yuanhan Liu
yuanhan.liu at linux.intel.com
Fri Apr 28 06:56:22 CEST 2017
On Wed, Feb 22, 2017 at 10:24:13AM +0800, Yuanhan Liu wrote:
> On Mon, Feb 20, 2017 at 10:04:46PM +0800, hanxueluo at 126.com wrote:
> > From: Huanle Han <hanxueluo at gmail.com>
> >
> > 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 at 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 at dpdk.org
Thanks.
--yliu
More information about the dev
mailing list