ethdev: fix error handling in create function
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Mon, 24 Sep 2018 13:43:24 +0000 (14:43 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Sep 2018 23:41:02 +0000 (01:41 +0200)
commitaa3c4fb6a451dcb1686e699ffbb87fb03e1ff9a4
tree654e9671720e7223ba5dcfb6584d548fbd17f641
parent901efc0da92546e5af799bcedd8e32f8e68d2fbc
ethdev: fix error handling in create function

This patch fixes how function exit is handled when errors inside
rte_eth_dev_create.

Fixes: e489007a411c ("ethdev: add generic create/destroy ethdev APIs")
Cc: stable@dpdk.org
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_ethdev/rte_ethdev.c