From: Ben Hutchings Date: Fri, 10 Sep 2010 06:41:19 +0000 (+0000) Subject: sfc: Fix failure paths in efx_probe_port() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e42de26249c88a00715ea686993192546d07133e;p=openwrt%2Fstaging%2Fblogic.git sfc: Fix failure paths in efx_probe_port() Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index b385f895bf23..a57604527a42 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c @@ -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; }