Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93083
b: refs/heads/master
c: c5835df
h: refs/heads/master
i:
  93081: 5b87222
  93079: 0c437d9
v: v3
  • Loading branch information
Mandeep Singh Baines authored and David S. Miller committed Apr 25, 2008
1 parent 7c6879a commit dacb381
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2db3e47e7080fde2a43d6312190d8229826b8e42
refs/heads/master: c5835df9716bdb1af8e25e9a452f717e54e02ed0
5 changes: 5 additions & 0 deletions trunk/net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ static int ethtool_get_eeprom(struct net_device *dev, void __user *useraddr)
bytes_remaining -= eeprom.len;
}

eeprom.len = userbuf - (useraddr + sizeof(eeprom));
eeprom.offset -= eeprom.len;
if (copy_to_user(useraddr, &eeprom, sizeof(eeprom)))
ret = -EFAULT;

kfree(data);
return ret;
}
Expand Down

0 comments on commit dacb381

Please sign in to comment.