Browse Source

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>
Ben Hutchings 11 years ago
parent
commit
5eed1f6852
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/ethernet/sfc/ethtool.c

+ 1 - 1
drivers/net/ethernet/sfc/ethtool.c

@@ -461,7 +461,7 @@ static void efx_ethtool_self_test(struct net_device *net_dev,
 		goto fail;
 
 	if (efx->state != STATE_READY) {
-		rc = -EIO;
+		rc = -EBUSY;
 		goto out;
 	}