diff options
author | Dan Murphy <dmurphy@ti.com> | 2017-10-10 20:42:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-12 00:14:32 +0300 |
commit | fc7556877d1748ac00958822a0a3bba1d4bd9e0d (patch) | |
tree | bc194482dc33766822f49233fb11abfbc2fd9db7 /drivers/net/phy/at803x.c | |
parent | 87461f7a58ab694e638ac52afa543b427751a9d0 (diff) | |
download | linux-fc7556877d1748ac00958822a0a3bba1d4bd9e0d.tar.xz |
net: phy: at803x: Change error to EINVAL for invalid MAC
Change the return error code to EINVAL if the MAC
address is not valid in the set_wol function.
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/at803x.c')
-rw-r--r-- | drivers/net/phy/at803x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index c1e52b9dc58d..5f93e6add563 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -167,7 +167,7 @@ static int at803x_set_wol(struct phy_device *phydev, mac = (const u8 *) ndev->dev_addr; if (!is_valid_ether_addr(mac)) - return -EFAULT; + return -EINVAL; for (i = 0; i < 3; i++) { phy_write(phydev, AT803X_MMD_ACCESS_CONTROL, |