diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2014-02-12 14:00:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-12 17:53:35 -0500 |
commit | 5eed1f68523c8cdeeafae24350200d47ddc293b7 (patch) | |
tree | 5e4b5c565eb50b67a1cb1de12213956dfdd42649 /drivers/net/ethernet/sfc | |
parent | 17e678d12bef11885af38f23a6753a35ce288177 (diff) |
sfc: Fail self-test with -EBUSY, not -EIO, if the device is busy
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r-- | drivers/net/ethernet/sfc/ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ethtool.c b/drivers/net/ethernet/sfc/ethtool.c index 3444dd618219..7d5cb86a47ef 100644 --- a/drivers/net/ethernet/sfc/ethtool.c +++ b/drivers/net/ethernet/sfc/ethtool.c | |||
@@ -461,7 +461,7 @@ static void efx_ethtool_self_test(struct net_device *net_dev, | |||
461 | goto fail; | 461 | goto fail; |
462 | 462 | ||
463 | if (efx->state != STATE_READY) { | 463 | if (efx->state != STATE_READY) { |
464 | rc = -EIO; | 464 | rc = -EBUSY; |
465 | goto out; | 465 | goto out; |
466 | } | 466 | } |
467 | 467 | ||