net/vhost: fix double free of MAC address
authorHideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Wed, 19 Dec 2018 04:37:18 +0000 (13:37 +0900)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:41 +0000 (16:22 +0100)
commit6e3339ca07734e59cd0c24594e3014ab49a0ffc0
treed86e9d8b1c9b0eff60ea4da80a0f7cfbdc36d90e
parent20c014b165a7d87e732748654df04062cf5bb348
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 <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/vhost/rte_eth_vhost.c