mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 06:56:43 +07:00
sfc: Fix failure paths in efx_probe_port()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7db8e8ec39
commit
e42de26249
@ -761,7 +761,7 @@ static int efx_probe_port(struct efx_nic *efx)
|
||||
/* Connect up MAC/PHY operations table */
|
||||
rc = efx->type->probe_port(efx);
|
||||
if (rc)
|
||||
goto err;
|
||||
return rc;
|
||||
|
||||
/* Sanity check MAC address */
|
||||
if (is_valid_ether_addr(efx->mac_address)) {
|
||||
@ -782,7 +782,7 @@ static int efx_probe_port(struct efx_nic *efx)
|
||||
return 0;
|
||||
|
||||
err:
|
||||
efx_remove_port(efx);
|
||||
efx->type->remove_port(efx);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user