kernel-ark/drivers/net/e1000e
Roel Kluin c32bc6e9b0 e1000: fix memcpy in e1000_get_strings
drivers/net/e1000/e1000_ethtool.c:113:
#define E1000_TEST_LEN sizeof(e1000_gstrings_test) / ETH_GSTRING_LEN

drivers/net/e1000e/ethtool.c:106:
#define E1000_TEST_LEN sizeof(e1000_gstrings_test) / ETH_GSTRING_LEN

E1000_TEST_LEN*ETH_GSTRING_LEN will expand to
sizeof(e1000_gstrings_test) / (ETH_GSTRING_LEN * ETH_GSTRING_LEN)

A lack of parentheses around defines causes unexpected results due to
operator precedences.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-12-07 15:01:43 -05:00
..
82571.c e1000e: Fix typo ! & 2007-10-30 14:32:17 -04:00
defines.h
e1000.h e1000e: Remove legacy jumbo frame receive code 2007-10-29 05:47:08 -04:00
es2lan.c
ethtool.c e1000: fix memcpy in e1000_get_strings 2007-12-07 15:01:43 -05:00
hw.h e1000e: Fix debug printk macro 2007-10-16 21:10:27 -04:00
ich8lan.c
lib.c e1000e: restore flow control settings properly 2007-10-10 16:55:25 -07:00
Makefile
netdev.c e1000e: Remove legacy jumbo frame receive code 2007-10-29 05:47:08 -04:00
param.c e1000e: fix sparse warnings 2007-10-30 14:32:16 -04:00
phy.c