Skip to content

Commit

Permalink
net/sfc: fix initialization error path
Browse files Browse the repository at this point in the history
[ upstream commit ba77f3e ]

NIC deinitialization should not happen after a failed NIC
initialization.

Fixes: 91831d4 ("net/sfc: estimate available resources")

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
  • Loading branch information
ol-igorrom authored and kevintraynor committed May 27, 2020
1 parent 1ce3cca commit 3dc55d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/sfc/sfc.c
Expand Up @@ -240,8 +240,8 @@ sfc_estimate_resource_limits(struct sfc_adapter *sa)
return 0;

fail_get_vi_pool:
fail_nic_init:
efx_nic_fini(sa->nic);
fail_nic_init:
return rc;
}

Expand Down

0 comments on commit 3dc55d5

Please sign in to comment.