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

Maxime Coquelin maxime.coquelin at redhat.com
Wed Apr 17 09:52:59 CEST 2019



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: stable at dpdk.org
> Reported-by: Michael Santana <msantana at redhat.com>
> Signed-off-by: Aaron Conole <aconole at redhat.com>
> ---
>   drivers/net/virtio/virtio_ethdev.c | 1 +
>   1 file changed, 1 insertion(+)

Applied to dpdk-next-virtio/master.

Thanks,
Maxime


More information about the dev mailing list