Re: [dpdk-dev] [PATCH] net/virtio: fix dangling pointer on failure

2019-04-17 Thread Maxime Coquelin
On 4/15/19 4:48 PM, Aaron Conole wrote: 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: 43d18765c027 ("net/virtio: fix memory leak on failure") Cc: sta...@dpdk.org Repo

Re: [dpdk-dev] [PATCH] net/virtio: fix dangling pointer on failure

2019-04-15 Thread Tiwei Bie
On Mon, Apr 15, 2019 at 10:48:18AM -0400, Aaron Conole wrote: > 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: 43d18765c027 ("net/virtio: fix memory leak on failu

[dpdk-dev] [PATCH] net/virtio: fix dangling pointer on failure

2019-04-15 Thread Aaron Conole
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: 43d18765c027 ("net/virtio: fix memory leak on failure") Cc: sta...@dpdk.org Reported-by: Michael Santana Signed-off-by: Aaro