From: Hideyuki Yamashita Date: Wed, 19 Dec 2018 04:37:18 +0000 (+0900) Subject: net/vhost: fix double free of MAC address X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6e3339ca07734e59cd0c24594e3014ab49a0ffc0;p=dpdk.git net/vhost: fix double free of MAC address The common data freeing has been moved to rte_eth_dev_release_port(), so freeing mac_addrs like this in eth_dev_close() is unnecessary and will cause double free. Fixes: e16adf08e54d ("ethdev: free all common data when releasing port") Cc: stable@dpdk.org Signed-off-by: Hideyuki Yamashita Signed-off-by: Yasufumi Ogawa Reviewed-by: Tiwei Bie --- diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 42bdfcbd59..b2cda04832 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -1000,7 +1000,6 @@ eth_dev_close(struct rte_eth_dev *dev) for (i = 0; i < dev->data->nb_tx_queues; i++) rte_free(dev->data->tx_queues[i]); - rte_free(dev->data->mac_addrs); free(internal->dev_name); free(internal->iface_name); rte_free(internal);