net/vhost: fix potential memory leak on close
authorItsuro Oda <oda@valinux.co.jp>
Thu, 5 Mar 2020 02:54:50 +0000 (11:54 +0900)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit770fabcd36ec11d64544e86ed7d2dda9f5c64daf
tree94a4e9f9a445cd3a91b6f3f393d7dbdbe841b7a8
parenta2154606ffa6b5ddacbebd8714facc7e2fda3262
net/vhost: fix potential memory leak on close

If a vhost device is closed before eth_dev_configure is done
to the device, internal resources allocated to the device
would not be freed. This patch fixes it.

Fixes: 3d01b759d267 ("net/vhost: delay driver setup")
Cc: stable@dpdk.org
Signed-off-by: Itsuro Oda <oda@valinux.co.jp>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/vhost/rte_eth_vhost.c