From: Ben Hutchings Date: Fri, 10 Sep 2010 06:41:19 +0000 (+0000) Subject: sfc: Fix failure paths in efx_probe_port() X-Git-Tag: v2.6.37-rc1~147^2~481 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e42de26249c88a00715ea686993192546d07133e;p=platform%2Fkernel%2Flinux-exynos.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 b385f89..a576045 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; }