summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJens Rottmann <JRottmann@LiPPERTEmbedded.de>2010-03-23 05:23:50 +0100
committerDavid S. Miller <davem@davemloft.net>2010-03-23 21:06:15 +0100
commit4881a4f89a95cc5fef6d32953954bcc3443eefd5 (patch)
tree7bbbf2c6e43538f7cb9cfbe8943d4ea02381ca46 /drivers
parentcgroups: net_cls as module (diff)
downloadlinux-4881a4f89a95cc5fef6d32953954bcc3443eefd5.tar.xz
linux-4881a4f89a95cc5fef6d32953954bcc3443eefd5.zip
ksz884x: fix return value of netdev_set_eeprom
ksz884x: fix return value of netdev_set_eeprom netdev_set_eeprom() confused ethtool by just returning 1 on error instead of a proper -EINVAL. Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ksz884x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ksz884x.c b/drivers/net/ksz884x.c
index 0f59099ee72f..6c5327af1bf9 100644
--- a/drivers/net/ksz884x.c
+++ b/drivers/net/ksz884x.c
@@ -6322,7 +6322,7 @@ static int netdev_set_eeprom(struct net_device *dev,
int len;
if (eeprom->magic != EEPROM_MAGIC)
- return 1;
+ return -EINVAL;
len = (eeprom->offset + eeprom->len + 1) / 2;
for (i = eeprom->offset / 2; i < len; i++)