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>
This commit is contained in:
parent
17e678d12b
commit
5eed1f6852
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue