From: Ben Hutchings Date: Wed, 12 Feb 2014 19:00:28 +0000 (+0000) Subject: sfc: Fail self-test with -EBUSY, not -EIO, if the device is busy X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5eed1f68523c8cdeeafae24350200d47ddc293b7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sfc: Fail self-test with -EBUSY, not -EIO, if the device is busy Signed-off-by: Ben Hutchings Signed-off-by: Shradha Shah Signed-off-by: David S. Miller --- 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, goto fail; if (efx->state != STATE_READY) { - rc = -EIO; + rc = -EBUSY; goto out; }