提交 e42de262 编写于 作者: B Ben Hutchings 提交者: David S. Miller

sfc: Fix failure paths in efx_probe_port()

Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7db8e8ec
...@@ -761,7 +761,7 @@ static int efx_probe_port(struct efx_nic *efx) ...@@ -761,7 +761,7 @@ static int efx_probe_port(struct efx_nic *efx)
/* Connect up MAC/PHY operations table */ /* Connect up MAC/PHY operations table */
rc = efx->type->probe_port(efx); rc = efx->type->probe_port(efx);
if (rc) if (rc)
goto err; return rc;
/* Sanity check MAC address */ /* Sanity check MAC address */
if (is_valid_ether_addr(efx->mac_address)) { if (is_valid_ether_addr(efx->mac_address)) {
...@@ -782,7 +782,7 @@ static int efx_probe_port(struct efx_nic *efx) ...@@ -782,7 +782,7 @@ static int efx_probe_port(struct efx_nic *efx)
return 0; return 0;
err: err:
efx_remove_port(efx); efx->type->remove_port(efx);
return rc; return rc;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册