mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue