Re: [dpdk-dev] [PATCH 2/3] net/virtio: fix crash when close virtio dev twice

2017-04-27 Thread Yuanhan Liu
On Wed, Feb 22, 2017 at 10:24:13AM +0800, Yuanhan Liu wrote: > On Mon, Feb 20, 2017 at 10:04:46PM +0800, hanxue...@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 avo

Re: [dpdk-dev] [PATCH 2/3] net/virtio: fix crash when close virtio dev twice

2017-02-21 Thread Yuanhan Liu
On Mon, Feb 20, 2017 at 10:04:46PM +0800, hanxue...@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 ar

[dpdk-dev] [PATCH 2/3] net/virtio: fix crash when close virtio dev twice

2017-02-20 Thread hanxueluo
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. Signed-off-by: Huanle Han --- drivers/net/virtio/virtio_ethdev.c | 5 + lib/librte_ether/rte_ethdev.c