numam-dpdk/drivers/net/virtio
Huanle Han 0e78cfddc0 net/virtio: fix crash when closing twice
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.

Fixes: 69c80d4ef8 ("net/virtio: allocate queue at init stage")
Cc: stable@dpdk.org

Signed-off-by: Huanle Han <hanxueluo@gmail.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2017-04-28 07:01:22 +02:00
..
virtio_user net/virtio-user: fix link status 2017-04-19 10:49:06 +02:00
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c net/virtio: fix crash when closing twice 2017-04-28 07:01:22 +02:00
virtio_ethdev.h eal: clean up interrupt handle 2017-04-06 21:15:55 +02:00
virtio_logs.h virtio: fix newline under debug mode 2016-05-10 10:52:01 -07:00
virtio_pci.c net/virtio: remove redundant MSI-X detection 2017-04-28 07:01:22 +02:00
virtio_pci.h net/virtio: fix LSC setting 2017-04-28 07:01:17 +02:00
virtio_ring.h net/virtio: fix used index retrieved only once 2016-06-22 09:47:12 +02:00
virtio_rxtx_simple_neon.c net/virtio: support to turn on/off traffic flow 2017-04-19 10:49:06 +02:00
virtio_rxtx_simple_sse.c net/virtio: support to turn on/off traffic flow 2017-04-19 10:49:06 +02:00
virtio_rxtx_simple.c net/virtio: support to turn on/off traffic flow 2017-04-19 10:49:06 +02:00
virtio_rxtx_simple.h mbuf: make segment prefree function public 2017-04-05 11:30:29 +02:00
virtio_rxtx.c net/virtio: support to turn on/off traffic flow 2017-04-19 10:49:06 +02:00
virtio_rxtx.h net/virtio: cleanup conditional compilation 2016-09-28 02:18:39 +02:00
virtio_user_ethdev.c drivers/net: use ethdev allocation helper for vdev 2017-04-18 19:04:49 +02:00
virtqueue.c net/virtio: add Rx interrupt enable/disable functions 2017-01-17 09:26:52 +01:00
virtqueue.h net/virtio-user: fix address on 32-bit system 2017-04-19 10:49:06 +02:00