net/sfc: fix initialization error path
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Thu, 5 Mar 2020 10:38:36 +0000 (10:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:41 +0000 (10:21 +0100)
commitba77f3e171733b49d7c991f03b97f0df6c85c4d1
treef81b9953ab51f2611c5f317123290b3aa4d302b3
parent52ec00fd1474e8f99f3da705b7efe95ba994b352
net/sfc: fix initialization error path

NIC deinitialization should not happen after a failed NIC
initialization.

Fixes: 91831d4068c8 ("net/sfc: estimate available resources")
Cc: stable@dpdk.org
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc.c