mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 14:14:54 +00:00
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>
This commit is contained in:
parent
87461f7a58
commit
fc7556877d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue