numam-dpdk/drivers/net/virtio
Aaron Conole 7dee8c7948 net/virtio: fix dangling pointer on failure
When eth_virtio_dev_init() is cleaning up, it does not correctly set
the mac_addrs variable to NULL, which will lead to a double free.

Found during unit-test fixes.

Fixes: 43d18765c0 ("net/virtio: fix memory leak on failure")
Cc: stable@dpdk.org

Reported-by: Michael Santana <msantana@redhat.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
2019-04-19 14:51:54 +02:00
..
virtio_user net/virtio-user: fix return value check 2019-04-19 14:51:54 +02:00
Makefile mk: add experimental tag check 2018-01-29 23:35:29 +01:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +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 dangling pointer on failure 2019-04-19 14:51:54 +02:00
virtio_ethdev.h net/virtio-user: fix multi-process support 2019-03-29 17:25:32 +01:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c build/linux: rename macro from LINUXAPP to LINUX 2019-03-12 17:31:22 +01:00
virtio_pci.h net/virtio: support platform memory ordering 2019-01-14 17:44:29 +01:00
virtio_ring.h net/virtio: define avail and used flags as constants 2019-03-29 17:25:32 +01:00
virtio_rxtx_simple_neon.c net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx_simple_sse.c net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx_simple.c eal: add macro for attribute weak 2018-10-25 02:11:23 +02:00
virtio_rxtx_simple.h net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx.c net/virtio: fix buffer leak on VLAN insert 2019-04-19 14:51:54 +02:00
virtio_rxtx.h net/virtio: fix resuming port with Rx vector path 2018-02-13 18:57:59 +01:00
virtio_user_ethdev.c net/virtio-user: fix multi-process support 2019-03-29 17:25:32 +01:00
virtqueue.c net/virtio: drop redundant suffix in packed ring structure 2019-03-20 18:15:42 +01:00
virtqueue.h net/virtio: define avail and used flags as constants 2019-03-29 17:25:32 +01:00