net/virtio: fix queue memory leak on error
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 5 Jun 2019 09:43:38 +0000 (17:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit2b38151f745a30ebe653a202563bf8539740633f
tree0af6c1a9306941be7ca714bb1efc054aa8f96435
parent0d8063fef63816c8ab5033aae7bfbfee4804a5b0
net/virtio: fix queue memory leak on error

We should free queues when we failed to initialize the virtio device.

Fixes: 26b683b4f7d0 ("net/virtio: setup Rx queue interrupts")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c