From: Mandeep Singh Baines Date: Fri, 25 Apr 2008 03:55:56 +0000 (-0700) Subject: ethtool: EEPROM dump no longer works for tg3 and natsemi X-Git-Tag: v2.6.26-rc1~1067^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5835df9716bdb1af8e25e9a452f717e54e02ed0;p=pandora-kernel.git ethtool: EEPROM dump no longer works for tg3 and natsemi In the ethtool user-space application, tg3 and natsemi over-ride the default implementation of dump_eeprom(). In both tg3_dump_eeprom() and natsemi_dump_eeprom(), there is a magic number check which is not present in the default implementation. Commit b131dd5d ("[ETHTOOL]: Add support for large eeproms") snipped the code which copied the ethtool_eeprom structure back to user-space. tg3 and natsemi are over-writing the magic number field and then checking it in user-space. With the ethtool_eeprom copy removed, the check is failing. The fix is simple. Add the ethtool_eeprom copy back. Signed-off-by: Mandeep Singh Baines Signed-off-by: David S. Miller --- Reading git-diff-tree failed