projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87461f7
)
net: phy: at803x: Change error to EINVAL for invalid MAC
author
Dan Murphy
<dmurphy@ti.com>
Tue, 10 Oct 2017 17:42:56 +0000
(12:42 -0500)
committer
David S. Miller
<davem@davemloft.net>
Wed, 11 Oct 2017 21:14:32 +0000
(14:14 -0700)
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>
drivers/net/phy/at803x.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/at803x.c
b/drivers/net/phy/at803x.c
index c1e52b9dc58d39f02f279b46f400fa811efe3866..5f93e6add56394f28f68da72ddb8fc724db14200 100644
(file)
--- 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 -E
FAULT
;
+ return -E
INVAL
;
for (i = 0; i < 3; i++) {
phy_write(phydev, AT803X_MMD_ACCESS_CONTROL,