net/tap: fix cleanup on allocation failure
authorMoti Haimovsky <motih@mellanox.com>
Mon, 5 Feb 2018 16:17:20 +0000 (18:17 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 8 Feb 2018 12:18:07 +0000 (13:18 +0100)
commitcb7e68da630abe7bb7b69885cc2a1a8e6d705943
treeb88b5874373b9398e07756aefd55ce6a7a03ae6f
parentcb16c6acd5f33f88b8e7bde021a9b00709f3155c
net/tap: fix cleanup on allocation failure

This patch complements the partial cleanup done inside
eth_dev_tap_create when the routine failed.
Such a failure left a non-functional device attached to the system.

Fixes: 050fe6e9ff97 ("drivers/net: use ethdev allocation helper for vdev")
Cc: stable@dpdk.org
Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: Pascal Mazon <pascal.mazon@6wind.com>
drivers/net/tap/rte_eth_tap.c