sfc: Fail self-test with -EBUSY, not -EIO, if the device is busy
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 12 Feb 2014 19:00:28 +0000 (19:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Feb 2014 22:53:35 +0000 (17:53 -0500)
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>
drivers/net/ethernet/sfc/ethtool.c

index 3444dd618219ef2f3e7c94f42622033991aece15..7d5cb86a47efabd927f86fd2543d80e4ac7da910 100644 (file)
@@ -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;
        }