]> git.droids-corp.org - dpdk.git/commit
net/virtio: unmap device on initialization error
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 5 Jun 2019 09:43:40 +0000 (17:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit3484c8d859b48f41c8958614736cc64f0e203f4c
tree0410b715d439019a5b0213702b11d319c38e32bb
parent535f8a109a655552b30a7cead6ffdcba3e73db29
net/virtio: unmap device on initialization error

We should unmap the device when we failed to initialize the device.

Fixes: 6ba1f63b5ab0 ("virtio: support specification 1.0")
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
drivers/net/virtio/virtio_pci.c