sfc: Allow efx_nic_type::dimension_resources to fail
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
@@ -1513,9 +1513,11 @@ static int efx_probe_nic(struct efx_nic *efx)
|
||||
* in MSI-X interrupts. */
|
||||
rc = efx_probe_interrupts(efx);
|
||||
if (rc)
|
||||
goto fail;
|
||||
goto fail1;
|
||||
|
||||
efx->type->dimension_resources(efx);
|
||||
rc = efx->type->dimension_resources(efx);
|
||||
if (rc)
|
||||
goto fail2;
|
||||
|
||||
if (efx->n_channels > 1)
|
||||
get_random_bytes(&efx->rx_hash_key, sizeof(efx->rx_hash_key));
|
||||
@@ -1533,7 +1535,9 @@ static int efx_probe_nic(struct efx_nic *efx)
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
fail2:
|
||||
efx_remove_interrupts(efx);
|
||||
fail1:
|
||||
efx->type->remove(efx);
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user